Support LQ: Use code LQ3 and save $3 on Domain Registration
Go Back > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Debian This forum is for the discussion of Debian Linux.


Search this Thread
Old 05-28-2005, 12:53 PM   #1
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


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

As a result, connecting my XP machine via a web browser to, 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
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
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
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 -----------


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

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


@ 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 MX 10 linux.mydomain.cxm
IN MX 15 dan.mydomain.cxm

linux IN A
ftp IN CNAME linux.mydomain.cxm.
www IN A
dan IN A

----- 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
Senior Member
Registered: May 2004
Location: In the DC 'burbs
Distribution: Arch, Scientific Linux, Debian, Ubuntu
Posts: 4,066

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
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?


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 06:51 AM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration