LinuxQuestions.org
LinuxAnswers - the LQ Linux tutorial section.
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
 
LinkBack Search this Thread
Old 02-09-2010, 07:37 AM   #1
chrisgti
Member
 
Registered: Mar 2009
Posts: 51

Rep: Reputation: 15
BIND records when adding with webmin


I have installed webmin to make updating DNS records a little easier and especially easier for the non-linux types when I am not around...

I have a list of records in /var/lib/named/master/acme.com (acme being an example)

eg:

host1 192.168.l.1
host2 192.168.1.2

I would typically add these manually to the zone file and then restart named.

However if I use webmin and add the host "host2" with ip 192.168.1.3, it shows up in the zone file as:

host3.acme.com. IN A 192.168.1.3

Why is this the case?

It wouldn't really be a problem, but if I try to ping 'host3' it doesn't work - nor does 'host3.' - I have to use the fully qualified name of 'host3.acme.com'

Can anybody explain why this is the case?

Many thanks

Last edited by chrisgti; 02-09-2010 at 07:43 AM.
 
Old 02-09-2010, 07:57 AM   #2
bathory
Guru
 
Registered: Jun 2004
Location: Piraeus
Distribution: Slackware
Posts: 9,207

Rep: Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873Reputation: 873
Hi,

When you miss the trailing dot after a host name, then the domain name is added automatically. Thus in a zone file either one of the following is correct:
Code:
host1 IN A 192.168.l.1
host1.acme.com. IN A 192.168.l.1
If you want to use just the hostname instead of the FQDN, add
Code:
domain acme.com
in /etc/resolv.conf

Regards
 
  


Reply


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
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
BIND 9X NS resource records rhlnewbie Linux - Software 7 08-12-2008 02:05 AM
setup primary,secondary dns records webmin meema Linux - Networking 9 02-21-2007 10:28 AM
DNS A records BIND SUSE 10 metallica1973 Linux - Networking 6 09-18-2006 04:28 PM
A records not showing up with Bind sks5530 Linux - Networking 2 06-01-2006 07:03 AM
DNS pb localdomain/in has no NS records using Webmin ..help.. :( villalolo Linux - Networking 1 07-01-2005 12:48 PM


All times are GMT -5. The time now is 11:47 AM.

Main Menu
 
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
identi.ca: @linuxquestions
Facebook: @linuxquestions
Open Source Consulting | Domain Registration