bgpdns
bgpdns
is a DNS server which synthesizes DNS records from the Internet routing table.
A small Perl script shows how to query the server using gethostbyname
.
The script reads from standard input, looks up everything which remotely looks like an IPv4 address, and writes the original input together with AS number annotations to standard output.
This patch for traceroute
from the Lawrence Berkeley National Laboratory Network Research Group implements a Cisco-style traceroute
with AS numbers.
A prototype implementation of bgpdns
is currently running on the host bgpdns.albireo.enyo.de
. The following queries are supported:
Queries for A records of domains like D.C.B.A.ipv4.asn.beta.bgpdns.enyo.de
. The first four labels denote an IP address in reversed dotted decimal notation, similar to the addresses under the in-addr.arpa
domain.
An IP address is returned; the most-significant octet has the value 127, the next one is currently zero (but it will encode the prefix length in the future), and the lower two octets encode the AS number.
At the moment, the server still uses a static routing table (which is a bit dated), but it is planned to add BGP peering capabilities to bgpdns
.
Source code for bgpdns
will be released as soon as bgpdns
leaves the prototype stage, and documentation is available.
2003-03-30: published
2003-07-30: The testbed is not operational at the moment.
2003-09-28: The testbed is operational again. A Perl script to query the testbed service is provided.