LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 07-20-2005, 03:14 AM   #1
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Rep: Reputation: 15
Network setup problem


Dear All

i am using slackware 10.1 currently..

i am trying to set up a LAN network which can be accesed with a domain name.

i am running netconfig on slackware and putting in hostname as "xxx" domain as "net" and rest all i am providing static ip as per my network specifications. i am not using a name server.

now i am able to access my pc from other part of my network by typing "http://172.16.56.201" but when i type "http://xxx.net", the index page does not open. and this is my problem. i want that the site should be accessible by typing "http://xxx.net" in the browser.

the entries in my /etc/HOSTNAME file are "xxx.net" and the "/etc/hosts" also has the correct entry in front of the IP. i am confused what did go wrong.

my httpd server is also running. so please send some suggestions.

regards

xing
 
Old 07-20-2005, 03:18 AM   #2
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
Try to ping xxx.net from a host on your lan to be sure the the name resolution works.
If this is OK, then the problem must come from your httpd config.
Are your virtual hosts ok?

HTH
Flupke
 
Old 07-20-2005, 03:33 AM   #3
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
i have pinged xxx.net but no response..

i think u r right, the name resolution is not working and i am going through httpd.conf to see if i can locate anything..

please suggest if anything particular to look for in httpd.conf or any other solution..

i am not virtual.. i am just trying to setup a server on local LAN which should be accessible to anyone by typing the "http://xxx.net" in the adrress bar of browser

regards

xing
 
Old 07-20-2005, 05:09 AM   #4
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
xxx.net is not a fully qualified domainname.. Run netconfig again using xxx then mynet.net which results in that computer being named xxx.mynet.net
 
Old 07-20-2005, 05:48 AM   #5
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
Well... If there's no firewall blocking ICMP traffic, as long as the ping does not work you wont get anywhere.
I think the problem comes from your /etc/hosts file.
 
Old 07-20-2005, 08:51 AM   #6
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
I have mentioned earlier that /etc/hosts seems alright.. let me put the output here

127.0.0.1 localhost
172.16.56.201 denamsro.net denamsro

and i think this is the right output...

HOSTNAME is also looking good. The entry is

denamsro.net

so what next we need to check.

remember, the 172.16.56.201 is pinging but http://denamsro.net is not

regards

xing
 
Old 07-20-2005, 10:17 AM   #7
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
Just to be sure : you're not trying to ping http://denamsro.net, are you?
Because if you do, no wonder it does not work. You have to ping denamsro.net *without* 'http://'. It's not part of the hostname.

Another question : what do you mean by 'it does not work'? Is your browser falling in timeout, do you get a blank page, an apache error page, ... ?
 
Old 07-21-2005, 01:14 AM   #8
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
yes, i have been pinging denamsro.net only and do not get any response. i am easily able to ping the IP address
 
Old 07-21-2005, 02:44 AM   #9
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
i just came across more information

i ran 'hostname' and 'domainname' command on the terminal.. the response i received was 'msro' and '(none)' respectively.

it surprises me because with the netconfig tool, i have put hostname as 'denamsro' and domainname as 'net' .. HOSTNAME shows denamsro.net and hosts shows
172.16.56.201 denamsro.net denamsro

CAN THIS BE ROOT OF PROBLEM???

i have set hostname as denamsro and domainname as denamsro.net, but i was still not able to ping the denamsro.net or denamsro.denamsro.net

while doing netconfig, i did not configure nameserver so it should take default of local nameserver...

Everything is getting confusing.. ANY HELP!!!

regards

xing
 
Old 07-21-2005, 06:14 AM   #10
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
If you can ping the ip address, then the only problem is that it can't resolv the name on the machine from which you issue the ping command.
Running netconfig, hostname, etc... on the machine denamsro will not change anything.

Indeed, your hosts file looks ok, so I think the question is : does the machine use it?

Can you make sure tha
 
Old 07-21-2005, 06:18 AM   #11
flupke
Member
 
Registered: Jun 2005
Location: BE
Posts: 30

Rep: Reputation: 15
If you can ping the ip address, then the only problem is that it can't resolv the name on the machine from which you issue the ping command.
Running netconfig, hostname, etc... on the machine denamsro will not change anything.

Indeed, your hosts file looks ok.
So I think the question is : does the machine use it?

When you ping, does it display the ip address or do you get really nothing?
Can you make sure that your /etc/nsswitch.conf contains the line
Code:
hosts:       files dns
?
 
Old 07-21-2005, 06:24 AM   #12
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
One more time about fully qualified domain names. Look at your browser line; you went to 'www.linuxquestions.org'. 'www' is undoubtedly a CNAME for the actual name of one computer in the linuxquestions.net domain. You only have two of the three portions needed for a fully qualified name.

Quote:
I have mentioned earlier that /etc/hosts seems alright.. let me put the output here

127.0.0.1 localhost
172.16.56.201 denamsro.net denamsro
Wrong should read more like
Code:
127.0.0.1 localhost
172.16.56.201 denamsro.doesnotread.net denamsro
So try netconfig again replacing '.net' with 'anything.net' then ping denamsro.anything.net
I am prepared to eat crow should this fail.
ppd
 
Old 07-21-2005, 06:56 AM   #13
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
YES FLUPKE , the IP is getting pinged but the name is not.. so we can assume that the name is not getting resolved.. i checked even my resolv.conf but it seems alright (again!!!)..
The question of whether the host file is getting used came to me as well but how can we know whether it is getting initialized at the boot time?? i could not see execution of rc.inet1 at boot time..

Pinging the Ip gets the replies from the PC i am pinging.. the response is something like this
Reply from 172.16.56.201 TTL .............

Yes, /etc/nsswitch has the line.. so no problem there as well

PDock i did as you said but result still same result.. i also rebooted my PC after doing the changes...

I think we all should, for the time being, concentrate on the fact that the IP is pinging and domain name is not .. so there is problem with the resolution of the domain name.. maybe we should look whether /etc/hosts is being read at the boot time or not.. and if not, how to ensure and verify it does..

Just to make sure, i do not think i need to configure DNS or nameserver on my PC as the default will be 172.16.56.201 only.. right??

regards

xing
 
Old 07-21-2005, 06:57 AM   #14
Xing
Member
 
Registered: Aug 2003
Location: New Delhi, India
Distribution: RH 9, RH 8, RH 7.3,Slackware
Posts: 123

Original Poster
Rep: Reputation: 15
PDock , we cannot use 'www' for the local LAN.. so it will be written as http://denamsro.anything.net in the browser and it has worked fine earlier
 
Old 07-21-2005, 07:53 AM   #15
PDock
Member
 
Registered: Aug 2004
Distribution: Slack10 & curr. tried numerous
Posts: 189

Rep: Reputation: 37
I was not suggesting you change denamsro to www; as a matter of fact I also said www was not the real name of the linuxquestion computer serving up web pages.
I take it now when you cat /etc/HOSTNAME ; your getting denamsro.anything.net
when you cat /etc/hosts ; your getting a line for localhost and
another: 172.16.56.201 denamsro.anything.net denamsro

Without a name server the /etc/hosts file [\windows\host] for each machine on your lan must contain a line for denamsro in order to ping by name. Actually it should contain all names on your lan.

ppd
 
  


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
network setup and browsing problem in linux 9 mayukhbd Linux - Networking 3 04-12-2004 01:20 AM
Odd Network Setup problem Rekna Linux - Networking 2 03-29-2004 11:16 PM
Network Setup Problem actinide16 Linux - Newbie 2 02-13-2004 08:47 PM
Problem to setup network between SuSE 8.2 and Win98 frank-01 Linux - Software 1 11-04-2003 12:08 AM
Newbie wanna setup up a linux network on existing home network... marvc Linux - Networking 3 03-19-2003 09:02 PM

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

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