Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DNS, routing table

Status
Not open for further replies.

bcme10

MIS
Jun 21, 2002
44
US
Does anyone know how to quickly refresh the routing tables on SOLARIS? Basically, the networking guys screwed up and pointed our application server hostname to the wrong IP address. Now the web server is constatnly hitting that wrong address even after the networking group corrected the entry. I know a reboot of the box would clear it up but is there anything I can do whitout rebooting?

thx
 
Thx,

I did the route -f, that flushes the gateways from my routing table. I had to manually add the default route back into the routing table.
 
Good. I assume your box will automatically pick up the default when it next reboots?
 
yes it will.

Does Solaris cache Hostname/IP addresses? Or does it query the name server everytime to look up the IP address of a hostname?

My web server is still going to the wrong IP address. In windows you can issue a ipconfig /flushdns, is there a similar command in Solaris?

Thx again.
 
yes, Solaris caches DNS info; I suggest to stop nameservice cache daemon with
/etc/init.d/nscd stop

run a
ping -s webservername
check if the IP Adress is now correct

You can add an IP Adress to your /etc/hosts file and change /etc/nsswitch.conf to:
...
hosts: files dns
...


Regards
-- Franz
Sorry I'm not a native spaeker, I'm from Munich, Germany - "Home of the Whopper", oh no, "Home of the Oktoberfest" ;-)
Solaris System Manager; I used to work for Sun Microsystems Support (EMEA) for 5 years
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top