A - Return A record (IPv4 address)
This module returns an A record with a random IPv4 address from the TEST-NET-1 network range by default.
Alternatively, the client can specify the exact IP address to be returned by specifying it in hexadecimal format in the query.
Category: General features
Format
a<00000000-ffffffff>.<NUMBER>.yourdomain.com
Where:
- The
<00000000-ffffffff>
parameter defines the IPv4 address to be generated, specified in hexadecimal format. - The
<NUMBER>
parameter defines how many A records should be generated in the response.
Examples
The most basic example returns a random IPv4 address from the TEST-NET-1 (192.0.2.0/24
) network range:
# dig a.yourdomain.com @127.0.0.1 ; <<>> DiG 9.20.7-1-Debian <<>> a.yourdomain.com @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 30677 ;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a.yourdomain.com. IN A ;; ANSWER SECTION: a.yourdomain.com. 60 IN A 192.0.2.97 ;; Query time: 4 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP) ;; WHEN: Mon Jun 30 15:42:15 +04 2025 ;; MSG SIZE rcvd: 50
In this example, we request to generate 1.1.1.1
IPv4 address:
# dig a01010101.yourdomain.com @127.0.0.1 ; <<>> DiG 9.20.7-1-Debian <<>> a01010101.yourdomain.com @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 62406 ;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;a01010101.yourdomain.com. IN A ;; ANSWER SECTION: a01010101.yourdomain.com. 60 IN A 1.1.1.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP) ;; WHEN: Mon Jun 23 01:09:05 +04 2025 ;; MSG SIZE rcvd: 58
In this example, we request to generate 192.168.0.1
IPv4 address:
# dig ac0a80001.yourdomain.com @127.0.0.1 ; <<>> DiG 9.20.7-1-Debian <<>> ac0a80001.yourdomain.com @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 21400 ;; flags: qr aa; QUERY: 1, ANSWER: 1, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ac0a80001.yourdomain.com. IN A ;; ANSWER SECTION: ac0a80001.yourdomain.com. 60 IN A 192.168.0.1 ;; Query time: 0 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP) ;; WHEN: Mon Jun 23 01:06:56 +04 2025 ;; MSG SIZE rcvd: 58
In this example, we request to generate ten (10) 192.168.0.1
IPv4 addresses:
# dig ac0a80001.10.yourdomain.com @127.0.0.1 ; <<>> DiG 9.20.7-1-Debian <<>> ac0a80001.10.yourdomain.com @127.0.0.1 ;; global options: +cmd ;; Got answer: ;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 53864 ;; flags: qr aa; QUERY: 1, ANSWER: 10, AUTHORITY: 0, ADDITIONAL: 0 ;; QUESTION SECTION: ;ac0a80001.10.yourdomain.com. IN A ;; ANSWER SECTION: ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ac0a80001.10.yourdomain.com. 60 IN A 192.168.0.1 ;; Query time: 4 msec ;; SERVER: 127.0.0.1#53(127.0.0.1) (UDP) ;; WHEN: Mon Jun 23 01:06:57 +04 2025 ;; MSG SIZE rcvd: 205
From the same category
- Always - Always Resolve to IP Address
- Count - Count Number of Queries
- Self - What Is My IP Address
- Size - Max A or AAAA Records Within Size Limit
- Wild - Wildcard Label Records