Linux-Noob Forums

Full Version: Basic DNS
You're currently viewing a stripped down version of our content. View the full version with proper formatting.

I need some help. I'm trying to configure DNS on my linux RH 9 box.

 

I'm not quite sure I fully understand how linux handles C records and A records. All I really need are A records that will point a hostname to an IP address within my LAN.

 

So,

 

Computer 1:

Name: Server1

IP Add: x.x.x.1

 

Computer 2:

Name: Server2

IPAdd: x.x.x.2

 

Computer 3:

Name: DHCP

IPAdd: x.x.x.3

 

etc...

 

I just want my local lan to resolve these names to an IP Address. I don't need the MX, NS or www. records. Just basic name resolution.

 

Bare with me, I'm a Windows admin, so I'm used to the "point click" dns config.


CNAME is just a alias to a A name

 

the A name is the primary host you want to assign to the IP

I understand dns as a whole, just not how Linux handles DNS. I have no problem doing c names and a names in windows. Arg... I'm just not grasping name.conf and or name.whatever and then putting the A record in there... etc.
you don't put them in there.. /etc/named.conf is the file that configs your dns.. you do all the c/a names in the zone files in /var/named

Quote:I need some help.  I'm trying to configure DNS on my linux RH 9 box.   

I'm not quite sure I fully understand how linux handles C records and A records.  All I really need are A records that will point a hostname to an IP address within my LAN. 

 

So,

 

Computer 1:

Name: Server1

IP Add: x.x.x.1

 

Computer 2:

Name: Server2

IPAdd: x.x.x.2

 

Computer 3:

Name: DHCP

IPAdd: x.x.x.3

 

etc...

 

I just want my local lan to resolve these names to an IP Address.  I don't need the MX, NS or www. records.  Just basic name resolution.

 

Bare with me, I'm a Windows admin, so I'm used to the "point click" dns config.
You don't need to run dns server for lan-only, use /etc/hosts.