LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices

Reply
 
Search this Thread
Old 05-28-2005, 12:53 PM   #1
d0127810
LQ Newbie
 
Registered: May 2005
Posts: 27

Rep: Reputation: 15
Domain Name Resolution


Hi I'm attempting to build an intranet server. I have spent a lot of time reading through books and looking at threads with no success. My aims for this thread are as follows:

-> Map a domain to and internal IP

e.g.
192.168.5.# intra.mydomain.net

-> Configure an XP machine to use my debian box to resolve domains

As a result, connecting my XP machine via a web browser to intra.mydomain.net, will resolve to this IP (192.168.5.#) and the web server will return a html document.

Apache server is up and running happily.

Things I have tried:

I have tried to accomplish this through the host file, with no success
I have tried to configure my reslov.conf file but not sure if that is the way to do it.

Can someone direct me to the best possible way of accomplishing this task please.

Thanks in advance
 
Old 05-28-2005, 04:15 PM   #2
objorkum
Member
 
Registered: Aug 2003
Location: Norway
Distribution: Slackware 10.0
Posts: 231

Rep: Reputation: 30
If you edit the resolv.conf, that will not affect the Windows-box, of course.

You can edit the XP machine's host-file, or you can set up a DNS-server, and set the XP machine to use the Debian-box as the primary DNS-server.

If there is only one XP machine, the easiest way is to edit Windows' host file. I don't know where it is, search for "host". It should be somewhere in C:\Windows

You will understand the file easily when you open it.
 
Old 05-28-2005, 04:25 PM   #3
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,378

Rep: Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963Reputation: 1963
what is 192.168.5.# meant to mean?? this doesn't fit in with any standard networking practises... You don't necessarily link a subnet with a domain... it's not like that.

as for dns... install a dns relay server on it... and tell window to go there for dns.
 
Old 05-28-2005, 06:25 PM   #4
d0127810
LQ Newbie
 
Registered: May 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Thanks for the reply guys

"what is 192.168.5.# meant to mean?? "

The # means any number. Trying to be a sittle discrete

I know of the Windows XP host file, which I have used, but the end idea is to build a intranet server, so not practical in the long run.

"you can set up a DNS-server, and set the XP machine to use the Debian-box as the primary DNS-server"

This is what I have tried to achieve thus far, I have set the XP machine to reference my Debian box as a primary Name Server,

This is what I have done on the:

----- FILE 1 -----------

named.conf:

zone "mydomain.cxm" in {
type master;
file "mydomain.cxm";
};

------ FILE 2 ---------

mydomain.cxm:

@ IN SOA linux.mydomain.cxm. hostmaster.linux.mydomain.cxm.(
200505280 ; serial number
10800 ; refresh 3 hours
3600 ; retry 1 hour
36000000 ; expire 1000 hours
86400 ); Minimum 24 hours

IN NS linux.mydomain.cxm
IN A 192.168.2.5
IN MX 10 linux.mydomain.cxm
IN MX 15 dan.mydomain.cxm

linux IN A 192.168.2.5
IN HINFO PC-686 LINUX
ftp IN CNAME linux.mydomain.cxm.
www IN A 192.168.2.5
dan IN A 192.168.2.3

----- END OF FILE LIST ----

When I try to ping linux.mydomain.cxm, I get

unknown host linux.mydomain.cxm

I think I'm headed in the right direction, any pointers?

Last edited by d0127810; 05-28-2005 at 06:36 PM.
 
Old 05-28-2005, 11:31 PM   #5
btmiller
Senior Member
 
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,060

Rep: Reputation: 295Reputation: 295Reputation: 295
Did you set the XP and Linux system to use the DNS server that you set up?
 
Old 05-29-2005, 10:15 AM   #6
d0127810
LQ Newbie
 
Registered: May 2005
Posts: 27

Original Poster
Rep: Reputation: 15
Hi, thanks for answering,

I have set on the XP machine to look at the linux machine as the Name Server, by setting the primary DNS to the IP of the server, I left the second name server empty to make sure it only relies on the linux machine. When the linux machine is off, the PC cannot resolve the internet which means that is a success.

However, I don't know how to make sure the actual linux machine resolves or checks itself for domains before looking at the next authoratitve server, can I set this on etc/network/interfaces, can I have an example please?
 
  


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
what would make ever virtual domain name resolve to one domain name on my system kuplo Linux - Newbie 1 11-14-2005 06:57 PM
X-Windows DNS Domain Resolution issue RichardStern Linux - Networking 1 07-14-2005 11:07 AM
Strange domain name resolution Temujin_12 Linux - Networking 0 05-12-2005 06:58 PM
Linux through Airport: no domain resolution slightly Linux - Networking 0 12-02-2004 11:35 PM
Domain Name resolution, win*/Linux network jazzclubber Linux - Networking 1 10-29-2002 05:46 AM


All times are GMT -5. The time now is 03:03 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 Google+: linuxquestions
Open Source Consulting | Domain Registration