in reply to Re: Re: find DNS of local server
in thread find DNS of local server

Perhaps perlfaq9: How do I find out my hostname/domainname/IP address? will help.