Link to home
Start Free TrialLog in
Avatar of Mark
Mark

asked on

Linux losing DNS with SBS 2008

Probably a badly worded title, but here's what's happening ... I have 2 linux hosts in my SBS 2008 domain. The SBS 2008 host is the domain server, Exchange Server, Actrive Directory server, DNS server and DHCP server for the domain. The linux host are not part of the domain in the 'Active Directory' sense, but they do use the SBS 2008 host as the DNS server and linux host2 uses the SBS server for DHCP.

Here's the problem: linux host2 get's a DHCP address from the SBS server. On the SBS Server > Start > Administrative Tools > DNS >  {hostname} > Forward Lookup Zones > hprs.local, linux host2 is listed with its assigned IP address. Linux host1 can reference host2 by hostname and find it. It uses that lookup by hostname to NFS mount drives from host2. All is well.

After some period of time, typically a few days, linux host1 can no longer find host2 by name. Pinging by name, etc. returns host not found. When I look at the same DNS listing as above on the SBS server the linux host2 is no longer listed. Linux host2 *is* still listed under Start > Administrative Tools > DHCP > mail.hprs.local > IPv4 > Scope > Address Leases.

All Windows workstations can still map drives on linux host2

Existing NFS connections from linux host1 to host2 are not lost (the connection stays), but no new connections can be done by name. I can do new connections by IP.

I believe the problem is that the SBS 2008 DNS server is losing the DNS entry for linux host2 after some period of time. If I do /etc/rc.d/rc.inet1 eth0_restart on linux host2 to re-request DHCP, the IP does show up again in the SBS server DNS list (but doesn't stay).

Is this just a bug in SBS 2008 DNS or is there some setting I need to make on the SBS server to retain the IP in the DNS list, or some setting I need to make on linux host2 to re-request the lease every so often?

This is a big issue since linux host1 wants to connect to linux host2 daily for backup purposes. My only other safe alterntive is to give linux host2 a static IP and configure that explicitly in SBS server DNS, which I'd rather not do to keep the setup simpler.
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Does an NSLookup on either Linux host show SBS as the source DNS when the problem is happening?

Create a manual DNS A record in domain.local with the name pointing to the IP of the Linux box.

Use DHCP reservation to "static" Linux2 to the IP assigned in DNS above.

Make sure DHCP under the Advanced Tab has Admin Credentials set.
Make sure DHCP under DNS tab has all check marks to allow DNS to be updated with IPs assigned.

Philip
Avatar of Mark
Mark

ASKER

Philip:  >Does an NSLookup on either Linux host show SBS as the source DNS when the problem is happening?

Yes:

$ nslookup yahoo.com
Server:         192.168.0.2
Address:        192.168.0.2#53

Non-authoritative answer:
Name:   yahoo.com
Address: 98.139.183.24
Name:   yahoo.com
Address: 206.190.36.45
Name:   yahoo.com
Address: 98.138.253.109

The Server: 192.168.0.2 is the IP of the SBS 2008 server. Same nslookup results on both Linux hosts.

> Create a manual DNS A record in domain.local with the name pointing to the IP of the Linux box.

Well, that extra bit is what I was trying to avoid. I'd like it to work like any 'ole dynamic IP without caring about whether it is static or not. I don't have any of the Windows workstations in the domain set as static (DHCP reserved).

> Make sure DHCP under DNS tab has all check marks to allow DNS to be updated with IPs assigned.

I believe I do have this set correctly. See image below. I have a feeling that the last setting on that form is not working correctly: "Dynamically update DNS A PTR recrods for DHCP clients that do not request update". Possibly, linux host2 is not requesting updates, so its DNS A PTR record eventually goes away. Just a guess, I'm no expert on either DNS or DHCP.

Any ideas on what I could do to fix this short of creating a DHCP reservation for this host? Do any Linux folks know of something I can do on the host2 side to "refresh"  or otherwise cause the DNS entry to be updated on the SBS Server?

User generated image
ASKER CERTIFIED SOLUTION
Avatar of Philip Elder
Philip Elder
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Mark

ASKER

Philip: Thanks I'll do the static thing if needed. Meanwhile, are there any Linux gurus out there that can answer Philip's (and my) question?

> On Windows there is a setting on the NIC "Register this connection in DNS". Is there an equivalent in the OS NIC properties for the Linux box?
Avatar of Mark

ASKER

More information ...

I think this is a Linux problem. I have a newly configured Linux router (completely different location than the SBS 2008 issue) that gets a dynamic IP address from the ISP cable modem. The linux system was rebooted at about 11:00PM yesterday and sometime around 1:00PM today I lost connection to the Internet. The cable modem seemed to be fine, but no Internet connection. When I restarted eth0 it re-acquired the lease and connection resumed.

I don't know if this connection loss is due to a DHCP lease issue or inactivity. I don't think it is inactivity because the Internet connection stayed up overnight with no activity. This is the first time this has happened with the Linux-router and I do not have a lot of time using Linux as a router. Maybe it's an anomaly.

I think there must be something in the linux DHCP client setup to tell the DHCP server to stay connected.

Need help
Avatar of Mark

ASKER

Here's the fix: I added an A record for webserver.ohprs.org = 192.168.0.3 to the SBS Domain server. Then I added the following to webserver:/etc/mail/access.dbL

ohprsstorage.hprs.local RELAY
ohprsstorage RELAY

And, added the following line to /etc/mail/mailertable:

ohprsstorage.hprs.local         smtp:ohprsstorage.hprs.local

That seems to have done the trick!