localhost,DNS,SunOS

2007-12-25 11:49:00

I was unable to resolve localhost (127.0.0.1) on my SunOS 4.1.4 which is a

secondary name server. I had compiled my shared libraries and they seemed

to work fine wile rsolving any other name except localhost.

Now the solution, a name server is always primary for localhost. This is

OK. You should define fake zones inorder to succeed this.

What I have done is :

primary LOCALHOST localhost

primary 0.0.127.IN_ADDR_ARPA named.local

put these lines in my named.boot

then in localhost file :

 ;fake zonefile for LOCALHOST.

 ;

 @ 604800 IN SOA LOCALHOST. root.virgo.raksnet.com.tr. (

                                         96112505 ; Serial

                                         7200 ; refresh every 2 hours

                                         7200 ; retry every 2 hours

                                         12096000 ; expire in 20 weeks

                                         86400 ) ; minimum

         604800 IN NS virgo.raksnet.com.tr.

localhost. IN A 127.0.0.1

These had cured my problem. Thanx to David Pope for his correct answer.

virgo%

Gokhan OZKAN

Network Administrator

e-mail : Gokhan.Ozkan@raksnet.com.tr

Comments

Got something to say?

You must be logged in to post a comment.