Solved

Linux losing DNS with SBS 2008

Posted on 2013-06-19
6
466 Views
Last Modified: 2013-10-25
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.
0
Comment
Question by:jmarkfoley
  • 4
  • 2
6 Comments
 
LVL 38

Expert Comment

by:Philip Elder
ID: 39260658
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
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 39260925
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?

DNS update for DHCP
0
 
LVL 38

Accepted Solution

by:
Philip Elder earned 500 total points
ID: 39261397
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?

Short of that, there is nothing wrong with dropping a static DNS A record and DHCP Reservation for the problematic machine. We did this quite a bit with early Linux based NAS boxes that refused to do the same as you are experiencing.

Philip
0
IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

 
LVL 1

Author Comment

by:jmarkfoley
ID: 39262332
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?
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 39263571
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
0
 
LVL 1

Author Comment

by:jmarkfoley
ID: 39601148
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!
0

Featured Post

Enabling OSINT in Activity Based Intelligence

Activity based intelligence (ABI) requires access to all available sources of data. Recorded Future allows analysts to observe structured data on the open, deep, and dark web.

Join & Write a Comment

In the event you manage a Small Business Server 2003, and you are audited for PCI compliance, there are several changes you must make in order to pass the audit. I can take no credit for discovering any of these fixes or workarounds, but there is no…
The articles for turning off the Client firewall policy on the internet are for SBS 2008 and don't really help for SBS 2011. They actually moved the Client firewall policy. In 2011, the client firewall policy has moved to the SBS computers conta…
Here's a very brief overview of the methods PRTG Network Monitor (https://www.paessler.com/prtg) offers for monitoring bandwidth, to help you decide which methods you´d like to investigate in more detail.  The methods are covered in more detail in o…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

16 Experts available now in Live!

Get 1:1 Help Now