ParrotSecurity 3.8: Disable tail additions of /etc/resolv.conf

This article will describe disable tail additions of /etc/resolv.conf like nameserver 92.222.97.145.

1 /etc/resolv.conf before disable

/etc/resolv.conf before disable is the following. nameserver 192.168.11.2 and search hiroom2.com are provided by DHCP server but others are added by resolvconf.

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.11.2
search hiroom2.com

# ParrotDNS
nameserver 92.222.97.145
nameserver 192.99.85.244

# OpenNIC
nameserver 185.121.177.177

# Round Robin
options rotate

This is defined at /etc/resolvconf/resolv.conf.d. "options rotate" will rotate nameserver. You cannot resolve private network if using nameserver provided by DHCP server to resolve private network.

$ cat /etc/resolvconf/resolv.conf.d/tail

# ParrotDNS
nameserver 92.222.97.145
nameserver 192.99.85.244

# OpenNIC
nameserver 185.121.177.177

# Round Robin
options rotate

2 Disable tail additions of /etc/resolv.conf

This article renames /etc/resolvconf/resolv.conf.d/tail to another to disable tail additions of /etc/resolv.conf. You can also make "option rotate" be comment out.

$ sudo mv /etc/resolvconf/resolv.conf.d/tail \
/etc/resolvconf/resolv.conf.d/tail.disabled

Reboot system.

$ sudo reboot

3 /etc/resolv.conf after disable

/etc/resolv.conf after disable is the following.

# Dynamic resolv.conf(5) file for glibc resolver(3) generated by resolvconf(8)
#     DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN
nameserver 192.168.11.2
search hiroom2.com