Forum     

Go Back   Digit Technology Discussion Forum > Software > Open Source
Register FAQ Calendar Mark Forums Read

Open Source A place where you can talk to like-minded people about the fastest growing software movement today! Discuss anything and everything about Open Source software and Operating Systems.


Closed Thread
 
LinkBack Thread Tools Display Modes
Old 19-06-2006, 04:15 PM   #1 (permalink)
In The Zone
 
Join Date: Feb 2005
Posts: 347
Thumbs up Linux not resolving ip address from /etc/hosts file


Hello,

I'm maintaining a network with Linux machines as servers. I have one machine as the DNS server, one as DHCP server. I need to poing my MSSQL server "sqlserver" to a private ip (10.180.1.5) for all my clients.

Since all my clients are assigned ip address through DHCP they all are using my dns server as the DNS server. So i though instead of adding a new zone file for just one record i'll just make "sqlserver" resolve to 10.180.1.5 in my DNS server and then it will be resolved in all the machins (since they query DNS server).

My problem, starts here


[root@dns etc]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1 localhost.localdomain localhost
10.180.1.5 sqlserver

[root@dns etc]# host sqlserver
Host sqlserver not found: 3(NXDOMAIN)

[root@dns etc]# cat nsswitch.conf | grep host
#hosts: db files nisplus nis dns
hosts: files dns

[root@gw etc]# cat resolv.conf
nameserver 10.180.1.11
nameserver 10.180.1.25
nameserver xxx.xxx.xx.1


Here y machine ip is 10.180.1.11, 1.25 is the dns backup server and the xxx.xxx.xx.1 is my ISP nameserver (I have just replaced it with XXX for privacy)


As posted above my problem is that the ipcannot be resolved even after it have been added in the hosts file.

Somebody please help
__________________
Experience Is not Counted in Years.. But in the Countless Effort
www.kolasib.com www.zoram.org
valtea is offline  
Advertisements. Register and be a member of the community to get rid of them.
Advertisement

Old 19-06-2006, 04:32 PM   #2 (permalink)
Wise Old Owl
 
JGuru's Avatar
 
Join Date: Dec 2005
Location: Space-time continuum
Posts: 1,646
Default Re: Linux not resolving ip address from /etc/hosts file

Which Linux distro and what version of it you are using right now - both for the client
& the Server? Try autoconfiguration thro DHCP from the client also. Anyway the
procedure differs slightly from one Linux distro to the another.
JGuru is offline  
Old 20-06-2006, 11:50 AM   #3 (permalink)
In The Zone
 
Join Date: Feb 2005
Posts: 347
Default Re: Linux not resolving ip address from /etc/hosts file

I'm using RHEL 3 for my servers, and most of my clients are using windows.
__________________
Experience Is not Counted in Years.. But in the Countless Effort
www.kolasib.com www.zoram.org
valtea is offline  
Closed Thread

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


 
Latest Threads
- by topgear

Advertisement




All times are GMT +5.5. The time now is 08:46 AM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.

Search Engine Optimization by vBSEO 3.3.2