|
About ::
TODO ::
Blog ::
RSS ::
Old blog ::
Projects ::
GIT ::
Gallery ::
Notes
Wed, 30 Jul 2008
Simple DNS server/resolver.
$ dig @localhost -p 1025 www.google.com ;; Warning: query response not set ; <<>> DiG 9.4.2-P1 <<>> @localhost -p 1025 www.google.com ; (1 server found) ;; global options: printcmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 51486 ;; flags: rd; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 1 ;; WARNING: recursion requested but not available ;; QUESTION SECTION: ;www.google.com. IN A ;; ANSWER SECTION: www.google.com. 123456 IN A 195.178.208.66 ;; ADDITIONAL SECTION: www.google.com. 123456 IN A 195.178.208.66 ;; Query time: 15 msec ;; SERVER: 127.0.0.1#1025(127.0.0.1) ;; WHEN: Wed Jul 30 02:56:23 2008 ;; MSG SIZE rcvd: 64There are several warnings, which I will fix later, but main part is section content: www.google.com obviously does not have an IP address of my blog site. TTL usually also does not equal to 123456. Game continues, while I need some sleep... /devel/networking/dns :: Link / Comments () |