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.
Hey guys, I have been making configuration changes left and right, now I think I have made so many different changes that I am starting to get confused on why this isn't working. I have done several things and feel like it is in my zone files or perhaps my permissions on my keys (rndc.key) included in bind. Any suggestions would be appreciated. I can include zone files but do not want to take up a lot of space. If someone can direct me on how to insert my zones inside of a scrolling window like I see on here, that would be great..I'm as newbie to posting but check this site A LOT.
Well your nslookup is being run from a windows computer I imagine that is separate from the server. So is your issue here that your DNS entries inside of bind are not visible externally? I don't see a clear definition of your actual issue in the post can you clarify it a bit?
I am performing an nslookup on my server side as well as my windows side. The ubuntu server is giving me the error; SERVFAIL. I am trying to do an nslookup just using my server's IP and it will not find it. I am unable to find it pinging the domain as well. I hookup other machines and dhcp hands out their ip's and I am able to ping both the ip and hostname, but I cannot perform an nslookup on the ip or hostname.
SERVFAIL generally indicates a problem, such as a syntax error in your zone file and Bind is rather picky about syntax. If you restart Bind do you get any warnings or errors? How about warnings or errors in your log file (on Ubuntu look in your syslog and daemon log). Then perform a query and look in the logs again. It should give you a hint towards the problem. If you are still having problems, please post your Zone file (feel free to substitute dummy addresses, but don't change the syntax your using).
I do not get any errors when restarting bind. I did look at my syslog and have nothing in there. But when I look in my daemon.log file I have located a few strings of text regarding my reverse zone file: not loaded due to errors. I would have to capture the data and insert in here for you to look at if I am not supplying enough information. I am still a newbie to UNIX/Linux in general, switch from windows...should have done it a LONG time ago. Anyways, a few example lines:
ubuntuserv named[4448]: /etc/bind/zones/rev.1.168.192.in-addr.arpa:3: ignoring out-of-zone data (.)
ubuntuserv named[4448]: dns_rdata_fromtext: /etc/bind/zones/rev.1.168.192.in-addr.arpa:8: near 'Minimum': extra input text
ubuntuserv named[4448]: /etc/bind/zones/rev.1.168.192.in-addr.arpa/IN: loading from master file /etc/bind/zones/rev.1.168.192.in-addr.arpa failed: extra input text
ubuntuserv named[4448]: /etc/bind/zones/rev.1.168.192.in-addr.arpa/IN: not loaded due to errors.
BOTH my forawrd and Reverse zone files look as if they are failing. Any suggestions on what I should do? I will load my zone files in the morning when I get back to the computer, thank you so much for everyone's help!!!
IN NS ubuntuserv.example.com
IN A 192.168.1.3
ubuntuserv IN A 192.168.1.3
router IN A 192.168.1.1
mail IN A 192.168.1.3
example.com. IN MX ubuntuserv.example.com.
This is my reverse zone: file name rev.1.168.192.in-addr.arpa
$TTL 3D
@ IN SOA ubuntuserv.example.com. root.example.com. (
IN NS ubuntuserv.example.com
IN A 192.168.1.3
ubuntuserv IN A 192.168.1.3
router IN A 192.168.1.1
mail IN A 192.168.1.3
example.com. IN MX ubuntuserv.example.com.
This is my reverse zone: file name rev.1.168.192.in-addr.arpa
$TTL 3D
@ IN SOA ubuntuserv.example.com. root.example.com. (
It explains how when whitespace is used at the start of a line, that the name of the last resource record is used. Hence, with the whitespace added, it changes how the line is interpreted and additional information is automatically inserted, satisfying the formal syntax.
The configtest command was not available to determine syntax errors. I have ready noway2's response and even read up on the whitespace. However, I am not sure what is meant by the whitespace on my topic. Am I suppose to create a whitespace or take one out of my code? I what else can I put in this topic other than my zone files that will help? My dhcp works perfectly. As soon as anyone plugs into my network they are assigned an IP and my sever sees the computer name but it just doesn't log it correctly. Perhaps my keygen rndc.key isn't being used correctly? I have followed several different posts trying to correct my issue and it just doesn't seem to work as it should. At least all my commands are coming back to me from my Perl classes in college, that's a plus!!!
You need to add whitespace (tabs) before certain fields in you zone file. Everything can't start in the leftmost column. Adding the tabs causes Bind to implicity define some missing syntax pieces. Here is a working example from one of my zone files. Also note which items do and do not end in a '.' (e.g. .lan versus .lan.). Feel free to copy it:
Code:
$ORIGIN .
$TTL 3600 ; 1 hour
dummy.lan IN SOA server.dummy.lan. admin.dummy.lan. (
2012031510 ; serial
4800 ; refresh (1 hour 20 minutes)
86400 ; retry (1 day)
86400 ; expire (1 day)
604800 ; minimum (1 week)
)
NS server.dummy.lan.
A 192.167.0.49
$ORIGIN dummy.lan.
server2 A 192.168.0.50
Thank you all for the replies. I went through my daemon.log and figured out what errors were occurring and where. I got my bind to load properly but now I am getting Server cannot find 1.168.192.in-addr.arpa. : NXDOMAIN. I will close this thread out and start a new one if I can't figure it out in the next few days. Once again, thank you guys!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.