![]() When /etc/nf is a symlink, dnssec-trigger daemon should remove it and create a brand new /etc/nf file. But its behavior when /etc/nf is not a symlink (1) doesn't achieve that and (2) result in rewriting files belonging to other tools. This is done to ensure that all applications talk to the local unbound instance whether or not another tool attempts to write its own version of /etc/nf. Note that this is not the same as removing the rights with chmod, since the file still can be overwritten, even though that all rights are removed from the file!įirst make the changes to the file and save it.When dnssec-trigger daemon starts, it writes /etc/nf and sets the immutable bit on it. On and only on ext2 and ext3 filesystems it is possible to immunize the nf file with chattr, so that no data is written to the file. I would almost categorize this as an workaround. Next you can control the settings in the /etc/nf file With supersede it will replace all DNS entries recived by the DHCP, which is most likely what you are looking for ?.Īfter the changes run, if ofcourse the connected adapter is eth0: Output of prepend domain-name-servers 208.67.222.222, 208.67.220.220Īppend, will add it the entries to the end of the file instead of first as we did with the prepend option above.Īppend domain-name-servers 208.67.222.222, 208.67.220.220 Prepend domain-name-servers 208.67.222.222, 208.67.220.220 Īfter the changes renew the IP to recieve the new DNS entries.Īfterwards the output of the nf file, should be something like this.The two last ones are the ones from the DHCP server. Add the DNS server or servers seperated by. Most likely the entry is commented with an #. I would defiantly recommend this solution, than the one provided below (immunize), because this one should work on all systems and are not restricted to the filesystem.įind the prepend domain-name-servers line in the /etc/dhcp3/nf file. Meaning that this will be added after the DNS from the DHCP in the /etc/nf In this first example, we will prepend the domain-name-servers. Using the dhclient it is possible to control the DNS entries.įind the following line, and edit as your needs. There are severel ways of protection the nf file for being overwritten by reboot or like in this first example, it is possible to control it completely, if you want to use another DNS than the DHCP server gives you. Distroname and release: Debian Squeeze Static DNS / Protect the nfĭNS servers are located in the /etc/nf file on linux systems, and unfortunately this file seems to be overwritten with every reboot, or DHCP lookup, which is quite frustrating in situations where ou want to use another DNS server. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |