virus_net wrote:I will look at ncdns
I took and see that you also have things to do
When we start to explore namecoin we registered own domain (as you
remember ) and now using it for the tests. Domain is mega-net.bit.
So we can compare resolv results of
ncdns and
ns4chain.
ncdns (running on my work comp)
Сontrol test:
Code: Select all
> nf.bit.
Server: 127.0.0.1
Address: 127.0.0.1#53
Name: nf.bit
Address: 94.23.252.190
Working. Now test some subdomains:
Code: Select all
> dnschain.mega-net.bit.
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
*** Can't find dnschain.mega-net.bit.: No answer
Code: Select all
> ru.mega-net.bit
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
*** Can't find ru.mega-net.bit: No answer
Code: Select all
> test.mega-net.bit
Server: 127.0.0.1
Address: 127.0.0.1#53
Non-authoritative answer:
*** Can't find test.mega-net.bit: No answer
ns4chain:
Сontrol test:
Code: Select all
> nf.bit
Server: 91.217.137.44
Address: 91.217.137.44#53
Non-authoritative answer:
Name: nf.bit
Address: 94.23.252.190
Working. Now test subdomains:
Code: Select all
> dnschain.mega-net.bit.
Server: 91.217.137.44
Address: 91.217.137.44#53
Non-authoritative answer:
dnschain.mega-net.bit canonical name = dnschain.subnets.ru.
Name: dnschain.subnets.ru
Address: 91.217.137.44
Code: Select all
> ru.mega-net.bit
Server: 91.217.137.44
Address: 91.217.137.44#53
Non-authoritative answer:
*.mega-net.bit canonical name = mega-net.bit.
Name: mega-net.bit
Address: 127.0.0.1
Code: Select all
> test.mega-net.bit
Server: 91.217.137.44
Address: 91.217.137.44#53
Non-authoritative answer:
Name: test.mega-net.bit
Address: 91.217.137.33
For now I don`t quite understand why
ncdns not resolv this names.
Inside
ncdns zone look like this:
Code: Select all
20170911135350 [INFO] ncdns.backend: Value:
Hostmaster: noc@mega-net.ru
IPv4 Address: 91.217.137.33
IPv6 Address: 2001:67c:13e4::1
Nameserver: 91.217.137.44
Subdomains:
www: Value:
CNAME: ""
Subdomains:
ru: Value:
IPv4 Address: 91.217.137.33
IPv4 Address: 91.217.137.34
IPv6 Address: 2001:67c:13e4::1
IPv6 Address: 2001:67c:13e4::2
dnschain: Value:
CNAME: "dnschain.subnets.ru."
test: Value:
IPv4 Address: 91.217.137.33
Subdomains:
www: Value:
CNAME: ""
test: Value:
CNAME: "www.@"
*: Value:
CNAME: ""
mx: Value:
IPv4 Address: 91.217.137.33
We can see that all subdomains are in place. But why
ncdns answer is "No answer" is unclear for me.
It's a pity that I dont know go lang... But I`am trying to understand.
---
UPDATE:
Also strange things with subdomains with aliases.
Code: Select all
20170911161514 [INFO] ncdns.namecoin: {"map":{"":"91.217.137.244","ru":{"ip":"1.1.1.1"},"www":{"alias":"loop"},"loop":{"ip":"2.2.2.2"}}}
Code: Select all
IPv4 Address: 91.217.137.244
Subdomains:
loop: Value:
IPv4 Address: 2.2.2.2
ru: Value:
IPv4 Address: 1.1.1.1
www: Value:
CNAME: "loop"
Code: Select all
# nslookup -q=A www.mega-net.bit. 127.0.0.1
Server: 127.0.0.1
Address: 127.0.0.1#53
www.mega-net.bit canonical name = loop.mega-net.bit.
Thats all... We see CNAME but IP 2.2.2.2 not returned...