Linux - ServerThis forum is for the discussion of Linux Software used in a server related context.
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.
I am using sendmail 8.14.9 on Slackware64 14.1, kernel 3.10.17. I just re-installed the OS, and upgraded all.
This host's IP is 192.68.0.3. It relays to a smart host. The maillog on the smart host has:
Code:
Mar 27 15:04:25 mail sm-mta[25371]: u2RJ4PuL025371: from=<root@webserver.hprs.local>, size=7921, class=0, nrcpts=20, msgid=<008301d185be$9a8ae790$cfa0b6b0$@ohprs.org>, proto=ESMTP, daemon=MTA, relay=darkstar.hprs.local [192.168.0.3]
You can see that the "relay" is shown as darkstar. Where is this coming from? That is the default hostname for a fresh install, but that name is not in my current /etc/hosts, etc/HOSTNAME, or /etc/mail/sendmail.cf. I've rebooted that computer several times.
I think the darkstar name is somehow "stuck" in the dns:
$ host 192.168.0.3
3.0.168.192.in-addr.arpa domain name pointer darkstar.hprs.local.
In this case you need to edit the zonefile of the 0.168.192.in-addr.arpa zone (the reverse zone).
BTW in the forward zone you've posted there is no A RR for webserver.hprs.local.
In this case you need to edit the zonefile of the 0.168.192.in-addr.arpa zone (the reverse zone).
BTW in the forward zone you've posted there is no A RR for webserver.hprs.local.
The webserver host is not defined in the zone file explicitly. It is in /etc/dhcpd.conf:
Should these get refreshed automatically w/o editing? Interestingly, the journal file only has entried for host that haven't existed for nearly a year.
Should these get refreshed automatically w/o editing?
Yes if you've configured your dhcp and dns servers for automatic (dynamic) updates.
If not, but you want to do so, have a look here
Otherwise edit the 0.168.192.in-addr.arpa zonefile and use:
This is driving me nuts! It's now been about 20 days since installing the new host and I am still getting "darkstar" in response to `host 192.168.0.3`. darkstar is still in my zone file (with a $TTL of 1 hour!). Yes, I know I could edit it out of the zonefile, but this stuff is supposed to be automatic, so I want to track down the problem.
I don't see the key, that dhcpd should use in order to dynamically update dns.
And you also need to configure the dns server to allow updates from dhcpd.
Have a look again at the link in my previous post.
I don't see the key, that dhcpd should use in order to dynamically update dns.
And you also need to configure the dns server to allow updates from dhcpd.
Have a look again at the link in my previous post.
Yes, I did look at that link. My understanding was that a "key" in not required. Rather than using the key as shown in that link:
allow-update { key dhcpupdate; };
I'm specifying the permitted IP range. The zone configs in my named.conf are shown below.
Code:
zone "hprs.local." IN {
type master;
allow-update { 192.168.0.0/24; 127.0.0.1; }; // local DHCP server
file "/etc/samba/private/dns/hprs.local.zone";
/* we need to use check-names ignore so _msdcs A records can be created */
check-names ignore;
};
zone "0.168.192.in-addr.arpa" in {
type master;
allow-update { 192.168.0.0/24; 127.0.0.1; }; // local DHCP server
file "/etc/samba/private/dns/db.192.168.0";
};
Another interesting bit ... I am logging dhcpd activity. I have DHCP[REQUEST|ACK]s from other of the hosts, but not for 192.168.0.3:
Code:
Apr 12 01:11:29 mail dhcpd: DHCPINFORM from 192.168.0.4 via eth1
Apr 12 01:11:29 mail dhcpd: DHCPACK to 192.168.0.4 (3c:1e:04:47:16:b0) via eth1
There are 15 such hosts ... excepting 192.168.0.3. Yes, 192.168.0.3 does have the nameserver host (192.168.0.2) configured in /etc/resolv.conf:
Interestingly, and confusingly, the bogus "darkstar" hostname and the correct hostname are in the journal file:
Code:
$ named-checkzone -Dj hprs.local /etc/samba/private/dns/hprs.local.zone
# (stuff deleted)
darkstar.hprs.local. 3600 IN A 192.168.0.3
darkstar.hprs.local. 3600 IN TXT "31fc87cb127f955a2bc6cef5d75f195260"
webserver.hprs.local. 3600 IN A 192.168.0.3
webserver.hprs.local. 3600 IN TXT "00a72c84d5da5a7047247078f738268ec3"
So, it looks like the update is working for all other hosts, just not 192.168.0.3. Short of the key-thing, other ideas?
So, it looks like the update is working for all other hosts, just not 192.168.0.3. Short of the key-thing, other ideas?
Well, I guess that since you assign always the ip 192.168.0.3 to the same host, you actually use a static ip for that host, so it doesn't get updated by dchp.
You could edit the zone file by hand and change the hostname from darkstar to webserver
Well, I guess that since you assign always the ip 192.168.0.3 to the same host, you actually use a static ip for that host, so it doesn't get updated by dchp.
You could edit the zone file by hand and change the hostname from darkstar to webserver
I may end up resorting to the edit option, but in drilling-down on this problem I've uncovered others. It seems that webserver/darkstar is not the only IP with issues. I have this same problem with other hosts, but it doesn't show up since the bad hostname sorts later than the good name, unlike darkstar sorting before webserver.
I've posted another question on this issue which manifests itself in the DNS journal file
I may end up resorting to the edit option, but in drilling-down on this problem I've uncovered others. It seems that webserver/darkstar is not the only IP with issues. I have this same problem with other hosts, but it doesn't show up since the bad hostname sorts later than the good name, unlike darkstar sorting before webserver.
Not recommended, but you may edit manually the dhcpd.leases file (after stopping dhcpd) to correct the static hostnames and remove the stalled hosts.
Then start dhcpd.
Quote:
I've posted another question on this issue which manifests itself in the DNS journal file
Problem solved. I did have to edit the zone files. According to other experts, old DNS entries don't necessarily get removed automatically. I used nsupdate to edit the files. See http://www.linuxquestions.org/questi...le-4175577276/ for details on the solution.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.