Sorry, please see the following supplement information:
$cat /etc/resolv.conf
domain ds.codeline.com
search ds.codeline.com
nameserver 10.193.143.1
nameserver 129.188.1.1
nameserver 129.188.2.2
$dig
www.google.com
;<<>> DiG 9.3.4 <<>>
www.google.com
;; global options: printcmd
;; Got answer:
;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 55822
;; flags: qr rd ra; QUERY: 1, ANSWER: 0, AUTHORITY: 1, ADDITIONAL: 0
;; QUESTION SECTION:
;
www.google.com. IN A
;; AUTHORITY SECTION: com. 7867 IN SOA dns0.corp.codeline.com.
dnssupport.codeline.com. 2000179475 3600 600 604800 14400
;; Query time: 32 msec
;; SERVER: 10.193.143.1#53(10.193.143.1)
;; WHEN: Mon Oct 20 23:01:51 2008
;; MSG SIZE rcvd: 102
"Joachim M?land" <jm-(E-Mail Removed)> дÈëÏûÏ¢ÐÂÎÅ:31dus5-(E-Mail Removed)...
> On Mon, 20 Oct 2008 21:09:56 +0800, Jking wrote:
>
>> I try to use dig to acquire the ip of a dns name, but fail. The machine
>> does connect to the dns server because the website I tried with dig can
>> actually accessed via firefox or other browser.
>>
>> BTW, the machine I used is behind the gateway of our company, does this
>> gateway cause the failure of dig command?
>
> Yes, or No...
>
>> Thank you for answer this question that confuse me for long time.
>
> Does this problem relate to only 1 single hostname?
>
> How do you invoke dig?
>
> What's your content of /etc/resolv.conf?
>
> What's the actual output from dig?
>
>
> --
> Regards/mvh Joachim M?land
>
> If everything seems under control, you're just not going fast enough.
> -Mario Andretti
>