LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
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 02-08-2006, 12:26 PM   #1
sjpatel
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Rep: Reputation: 0
setting up DNS


hello,


I would like to setup a dns for my department and I want it to query my company's main DNS for any query that it can't answer itself. The way my environment is set up is this hostname.xxx.yyy.org. So I want it to answer any query that pertains to "hostname" and then refer any other query relating to outside this domain to the xxx's main dns server. I have initally set it up but but for some reason everytime I query hostname by itself it looks into my hosts table and then goes to the dns I have setup. So primarily I want it to resolve the fullly qualified hostname: aaa.bbb.ccc.org without using /etc/hosts.

Any help is greatly appreciated.


Thank you,


Jay
 
Old 02-08-2006, 12:49 PM   #2
Dudydoo
Member
 
Registered: Sep 2003
Location: UK
Distribution: I use 'em all ;-)
Posts: 275

Rep: Reputation: 38
Add 'search xxx.yyy.org' to the end of /etc/resolv.conf and make sure /etc/host.conf reads 'order bind, hosts'
 
Old 02-08-2006, 07:07 PM   #3
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
you can try it : edit
1. /etc/named.conf (forwad and reverse also master or slave)
2. /var/named/exampleforward and /var/named/examplereverse
3. /etc/resolve (bind or hosts firstly )
4. /etc/host.conf
 
Old 02-09-2006, 02:18 PM   #4
sjpatel
LQ Newbie
 
Registered: Dec 2004
Posts: 4

Original Poster
Rep: Reputation: 0
Thanks for the replies. I got the DNS working and I placed in the search option in /etc/resolv.conf but I was trying to avoid this because we have hetrogenous environment with Unix, Linx, Windows, MacOS and BeOS environment. So I am now trying to find out a way so that the DNS can automatically resolve the fully qualified domainname when I only give it a hostname (instead of hostname.aaa.bbb.org which seems to work...but just too lazy to type all that).
So right now when I try to query a box with no search entry in /etc/resolv.conf I get:

[root@server1 ~]# ssh linuxbox1
ssh: linuxbox1: Name or service not known

and when I place in the /etc/hosts or search entry in /etc/resolv.conf file it resolves fine. So there must be a way for me to place this option in the DNS configuration.

Thanks,

Jay
 
Old 02-09-2006, 02:51 PM   #5
Darin
Senior Member
 
Registered: Jan 2003
Location: Portland, OR USA
Distribution: Slackware, SLAX, Gentoo, RH/Fedora
Posts: 1,024

Rep: Reputation: 45
If I understand what you are asking, you are in an environment where the domain is xxx.yyy.org and you want to resolve addresses like foo.xxx.yyy.org by just using the hostname foo instead of the fully qualified domain name foo.xxx.yyy.org? This is an issue to be worked out on the clients, not the DNS server. The fixes previously suggested change the way the client decides how/when to use the DNS server to look up a name. Some of these can also be set, for DHCP clients, from the DHCP server. On a Linux DHCP server, you can add these global settings to the dhcpd.conf file to let the clients know they are on the xxx.yyy.org domain so they will assume that given a hostname alone to look up, it will be one on this domain and query it's DNS server:
Code:
option domain-name "xxx.yyy.org";
option domain-name-servers ns1.xxx.yyy.org, ns2.xxx.yyy.org;
 
  


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
Setting up DNS UnknownFear Linux - Networking 3 04-10-2004 01:39 AM
Need Help setting up DNS???!!! richhoward Linux - General 13 06-25-2003 04:37 PM
Setting up DNS Mneumonic Linux - Software 1 03-14-2003 04:15 PM
Setting UP DNS Ciccio Linux - Networking 1 12-11-2002 10:23 PM
Help with setting up DNS gomer1701ems Linux - Networking 1 06-02-2001 07:54 AM

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

All times are GMT -5. The time now is 04:48 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