LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 12-11-2014, 07:27 AM   #1
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Rep: Reputation: 127Reputation: 127
Bind / named strange error "hostname not found" for one host


I have a local dns server for my private network "tuxoffice.lan".
All hostnames I add to file "forward.tuxoffice" works fine except one!
My pfsense firewall has a domain override for tuxoffice.lan, this works fine - except for that one hostname..

Here's the file"forward.tuxoffice" :
Code:
$TTL 600
@   IN  SOA     repo1.tuxoffice.lan. root.tuxoffice.lan. (
        2011071001  ;Serial
        900        ;Refresh
        600        ;Retry
        604800     ;Expire
        600        ;Minimum TTL
)
@	IN NS	repo1.tuxoffice.lan.
@	IN A	192.168.20.21
repo1	IN A	192.168.20.21
intsrv1	IN A	192.168.20.21
db1	IN A	192.168.20.11
intwww	IN A	192.168.20.31
www	IN A	192.168.10.11
testdb	IN A	192.168.20.41
backup	IN A	172.16.21.2
backuptest	IN A	172.16.21.2
athome	IN A	172.16.21.2
athometest	IN A	172.16.21.2
All these hostnames are now reacheble from my workstations (3 different tried) *except* backuptest.tuxoffice.lan.
testdb.tuxoffice.lan, athometest.tuxoffice.lan etc - all work fine.
To troubleshoot, I added the "athome" & "athometest" after backuptest, they resolved fine from my linux workstation.
Then I deleted the line for backuptest, reloaded named, changed the last line by erasing "athome" and typing in "backup". Reloaded nemed, backuptest.tuxoffice.lan still is not found.
---
Edit:
And just to make it even stranger:
After doing the above, I deleted the last 't' in "backuptest" - and this works, backuptes.tuxoffice.lan resolves!!!
So:
"athometest" - works fine
Replacing "athome" with "backup" so it reads "backuptest" - doesn't work
Removing last 't', so it reads "backuptes" - works fine
What the h..k??
----

I have checked /etc/hosts on my workstations & dns server, no entry except localhost.

There is nothing extraordinal in the logs, everything looks fine.
Code:
systemctl status named.service -l
named.service - Berkeley Internet Name Domain (DNS)
   Loaded: loaded (/usr/lib/systemd/system/named.service; disabled)
   Active: active (running) since ons 2014-12-10 15:48:30 CET; 22h ago
  Process: 9388 ExecStop=/bin/sh -c /usr/sbin/rndc stop > /dev/null 2>&1 || /bin/kill -TERM $MAINPID (code=exited, status=0/SUCCESS)
  Process: 10577 ExecReload=/bin/sh -c /usr/sbin/rndc reload > /dev/null 2>&1 || /bin/kill -HUP $MAINPID (code=exited, status=0/SUCCESS)
  Process: 9449 ExecStart=/usr/sbin/named -u named $OPTIONS (code=exited, status=0/SUCCESS)
  Process: 9447 ExecStartPre=/usr/sbin/named-checkconf -z /etc/named.conf (code=exited, status=0/SUCCESS)
 Main PID: 9451 (named)
   CGroup: /system.slice/named.service
           └─9451 /usr/sbin/named -u named

dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: sizing zone task pool based on 7 zones
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: using built-in DLV key for view _default
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: couldn't add command channel ::1#953: address not available
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: reloading configuration succeeded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: reloading zones succeeded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: zone tuxoffice.lan/IN: zone serial (2011071001) unchanged. zone may fail to transfer to slaves.
dec 11 14:09:58 intsrv1.tuxoffice.lan systemd[1]: Reloaded Berkeley Internet Name Domain (DNS).
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: zone tuxoffice.lan/IN: loaded serial 2011071001
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: all zones loaded
dec 11 14:09:58 intsrv1.tuxoffice.lan named[9451]: running

Last edited by pingu; 12-11-2014 at 01:27 PM.
 
Old 12-13-2014, 01:23 PM   #2
pingu
Senior Member
 
Registered: Jul 2004
Location: Skuttunge SWEDEN
Distribution: Debian preferably
Posts: 1,350

Original Poster
Rep: Reputation: 127Reputation: 127
It works now.
I don't know why or how, I haven't changed anything. I took at least 2 days.
My guess is that the arp cache is the cause - but on 3 different workstations?
Well, anyway. It finally works, can't recreate can't troubleshoot.
Have to marked "solved" although "unsolved but working" would be better... ;-)
---
Edit
Can't be arp. I don't get an ip just "hostname not found" so it has to be something with the dns.

Last edited by pingu; 12-14-2014 at 05:27 AM. Reason: Second thought
 
  


Reply



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
Bind 9 and "file Not Found " Error amjad Linux - Networking 1 11-06-2007 12:41 PM
startx fail , error shown "hostname: Unknown host " syseeker Red Hat 4 07-05-2006 11:40 AM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? munkey Linux - Newbie 3 05-03-2004 04:30 PM
Couldn't display "SMB:///" , No host "(Null)" could been Found?????? help munkey Fedora 6 04-30-2004 06:04 PM
bind and named and "rndc: connect failed: connection refused" coffee9876 Linux - Networking 3 12-16-2003 10:50 AM

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

All times are GMT -5. The time now is 09:39 PM.

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