LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-29-2015, 11:13 PM   #1
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Rep: Reputation: 180Reputation: 180
troubles with dns, journal keeps growing, persistent bogus IP


I'm running bind 9.9.7 on Slackware64 14.1. I have two problems (that I know of) with my dns. These may be related:

1. my domain zone file, /etc/samba/private/dns/hprs.local.zone.jnl, when listed with named-journalprint, is currently at 111,938 lines. It appears that it has everything from the day I first installed this host 8 months ago. There are hosts in the list that haven't been connected since then. Aren't these suppose to get "updated" into the main zone file periodically? If so, what process is supposed to do it?

2. All the legitimate workstations in the domain have IP addresses assigned by dhcpd running on this same server. I just added a new host (/etc/dhcpd.conf fragment):

host labrat {
hardware ethernet D0:67:E5:xx:yy:zz;
fixed-address 192.168.0.99;
}

DHCP *is* giving that host the correct address, but dns doesn't see it correctly:

$ host labrat
labrat.hprs.local has address 192.168.0.125

When I examine hprs.local.zone file, that *is* in fact the IP inside the zone file.

That IP for this host is also in the journal file. Lines in journal are:

Code:
111887  add WIN-6HM3EDL61FE.hprs.local. 3600 IN A       192.168.0.125
111890  del WIN-6HM3EDL61FE.hprs.local. 3600 IN A       192.168.0.125
111897  add labrat.hprs.local.  3600    IN      A       192.168.0.125
111898  add labrat.hprs.local.  3600    IN      TXT     "31c3a2afaf8f2ec7aeb8becc5c4f0d9e9e"
and my dhcpd log has:

Code:
Oct 29 19:06:14 mail dhcpd: DHCPDISCOVER from d0:67:e5:4f:02:6d via eth1
Oct 29 19:06:15 mail dhcpd: DHCPOFFER on 192.168.0.125 to d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:18 mail dhcpd: DHCPDISCOVER from d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:18 mail dhcpd: DHCPOFFER on 192.168.0.125 to d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:26 mail dhcpd: DHCPDISCOVER from d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:26 mail dhcpd: DHCPOFFER on 192.168.0.125 to d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:26 mail named[5002]: client 192.168.0.2#56165: updating zone 'hprs.local/IN': adding an RR at 'WIN-6HM3EDL61FE.hprs.local' A
Oct 29 19:06:26 mail named[5002]: client 192.168.0.2#56165: updating zone 'hprs.local/IN': adding an RR at 'WIN-6HM3EDL61FE.hprs.local' TXT
Oct 29 19:06:27 mail dhcpd: Wrote 0 deleted host decls to leases file.
Oct 29 19:06:27 mail dhcpd: Wrote 0 new dynamic host decls to leases file.
Oct 29 19:06:27 mail dhcpd: Wrote 25 leases to leases file.
Oct 29 19:06:27 mail dhcpd: DHCPREQUEST for 192.168.0.125 (192.168.0.2) from d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:27 mail dhcpd: DHCPACK on 192.168.0.125 to d0:67:e5:4f:02:6d (WIN-6HM3EDL61FE) via eth1
Oct 29 19:06:27 mail dhcpd: Added new forward map from WIN-6HM3EDL61FE.hprs.local. to 192.168.0.125
Where this certainly originally started is when I initially booted this new laptop in Windows (hence the WIN-6HM3EDL61FE hostname) and it simply got an IP address assigned from DHCPD. I named the Windows host 'labrat' and that name shows up a few lines later in the dhcpd log. Then I installed Linux/Ubuntu and it requested IP 192.168.0.126, but "unsuccessfully" updated the zone file:

Code:
Oct 29 19:41:27 mail dhcpd: DHCPDISCOVER from d0:67:e5:4f:02:6d (ubuntu) via eth1
Oct 29 19:41:28 mail dhcpd: DHCPOFFER on 192.168.0.126 to d0:67:e5:4f:02:6d (labrat) via eth1
Oct 29 19:41:28 mail named[5002]: client 192.168.0.2#56165: updating zone 'hprs.local/IN': update unsuccessful: labrat.hprs.local: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Oct 29 19:41:28 mail dhcpd: DHCPREQUEST for 192.168.0.126 (192.168.0.2) from d0:67:e5:4f:02:6d (labrat) via eth1
Oct 29 19:41:28 mail dhcpd: DHCPACK on 192.168.0.126 to d0:67:e5:4f:02:6d (labrat) via eth1
Oct 29 19:41:28 mail named[5002]: client 192.168.0.2#56165: updating zone 'hprs.local/IN': update unsuccessful: labrat.hprs.local/TXT: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Oct 29 19:41:28 mail dhcpd: Forward map from labrat.hprs.local. to 192.168.0.126 FAILED: Has an address record but no DHCID, not mine.
After all that, I finally configured DHCPD to offer a specific IP (192.168.0.99), but got errors with "'name not in use' prerequisite not satisfed", presumably because the name <u>labrat</u> is already assigned to 192.168.0.125:

Code:
Oct 29 21:16:51 mail dhcpd: DHCPDISCOVER from d0:67:e5:4f:02:6d via eth1
Oct 29 21:16:51 mail dhcpd: DHCPOFFER on 192.168.0.99 to d0:67:e5:4f:02:6d via eth1
Oct 29 21:16:51 mail dhcpd: DHCPREQUEST for 192.168.0.99 (192.168.0.2) from d0:67:e5:4f:02:6d via eth1
Oct 29 21:16:51 mail dhcpd: DHCPACK on 192.168.0.99 to d0:67:e5:4f:02:6d via eth1
Oct 29 21:16:51 mail named[5002]: client 192.168.0.2#39066: updating zone 'hprs.local/IN': update unsuccessful: labrat.hprs.local: 'name not in use' prerequisite not satisfied (YXDOMAIN)
Oct 29 21:16:51 mail named[5002]: client 192.168.0.2#39066: updating zone 'hprs.local/IN': update unsuccessful: labrat.hprs.local/TXT: 'RRset exists (value dependent)' prerequisite not satisfied (NXRRSET)
Oct 29 21:16:51 mail dhcpd: Forward map from labrat.hprs.local. to 192.168.0.99 FAILED: Has an address record but no DHCID, not mine.
It should also be mentioned that IP 192.168.0.125 *is* in the hprs.local.zone and hprs.local.zone.jnl files, but was in neither yesterday, so the domain zone file is getting updated (but why the 111,000+ entries in the journal file?).

So, why is this all messed up and how do I fix it? I need labrat to be 192.168.0.99 and for the dns to forget about 192.168.0.125! Oh yeah, and for my journal file to *not* be 111,000+ lines!
 
Old 10-30-2015, 02:15 PM   #2
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
Found a solution: `rndc sync -clean`. This cleans up the journal files. Never heard of this before. Is this journal clean-up technique common knowledge among network admins? When should it be run? Should bind be stopped before running or does bind need to be running for rdnc to run properly.
 
Old 11-01-2015, 05:42 PM   #3
mfoley
Senior Member
 
Registered: Oct 2008
Location: Columbus, Ohio USA
Distribution: Slackware
Posts: 2,593

Original Poster
Rep: Reputation: 180Reputation: 180
It looks like rdnc is intended to run while named is still running. Do you all concur?
 
  


Reply

Tags
bind, dhcpd, zone files


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
DNS script to redirect ad sites to a bogus address gregtompkins Linux - Software 0 06-06-2013 04:44 AM
journal rollforward failed: journal out of sync with zone-No DDNS plvasco Linux - Server 0 05-31-2013 07:45 PM
Creating a bogus DNS domain inside private address range network zogness Linux - Networking 13 10-16-2009 01:34 PM
MySQL ibdata1 growing and growing and growing and... jnojr Linux - Software 1 07-20-2009 07:11 PM
need help to set up caching only dns server to with bogus DNS entries ullas Linux - Networking 1 10-28-2003 01:54 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 03:33 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration