Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
While monitoring iftop, I noticed some old host names popping up. These are for computers that have been since has their hostnames changed, yet the new host names don't show.
I found the old host names in my reverse zone file:
> host HOLLY
holly.hprs.local has address 192.168.0.56
# but not when reverse lookup:
> host 192.168.0.56
56.0.168.192.in-addr.arpa domain name pointer DESKTOP-NSGIEI3.hprs.local.
The old hostnames that begin with "DESKTOP-" are probably what happened when I upgraded these computers to Windows 10 (scratch install, not actual "upgrade"). They got the randomly assigned hostname Windows gives when it first boots. I then changed the computers to the correct hostname (e.g. HOLLY) when finishing the config. Interestingly, the "correct" hostname is the same name the computer had when running Windows 7, yet that old name is no longer in the reverse zone file.
So, why is the reverse-zone file not getting updated with the new/correct host names?
Why do you expect the maintenance of your name server to be automatic?
If there are incorrect entries in your zone files, fix them.
Well, yes actually, I did expect it to be automatic. The hosts name/IP entries get into DNS x.local.zone file automatically, and the rDNS entries also apparently get in there automatically as with my example with DESKTOP-NSGIEI3.hprs.local. I didn't manually add that to the rDNS file -- it was automatic. So, yes, I did expect changes to hostnames and IPs get automatically updated.
However, if it's not automatic, it's not; regardless of my expectations. So, given that, how do you advise that I "fix them"? Is there a rndc function for this? Do I manually edit the zone file? If the latter, do I need to stop named first? I've not done this before and I've found nothing in the web to guide me.
After doing this I either have to restart bind or run 'rndc -V sync -clean'. Otherwise, the changes do not "take". Does this seem right?
Also, deleting the PTR records has no effect on the A or TXT records. So, to delete an obsolete host entirely I have to (assuming that host mpress is at 192.168.0.63):
Now, in this example, host 192.168.0.63 still exists, but has a different host name: "mike". The A and TXT records are in the zone file (added automatically, I might add), but now there is no PTR record for this IP in the rDNS zone file.
Do I have to add that manually or will it eventually appear? Note that when I add a new host to the network, it does appear in the both the zone file and reverse-zone file with A, TXT and PTR records. I've never added those manually after adding a host to the network. However, not sure what the behavior will be once I deleted the PTR record for that IP.
More than a day later host 'mike' has not appeared in the reverse-zone-file (PTR). I added a new host 'dbserverx' to the LAN a couple of weeks ago and it automatically appeared in the zone-file (A, TXT) and reverse-zone-file. Why would 'dbserverx' get automatically added to these zone-files, but 'mike' does not?
Could really used some help from any dns/network LQ experts.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.