okTurtles Forums › DNSChain › error: [Global] Error: No such oldDNSMethod: NATIVE_DNS
This topic contains 5 replies, has 2 voices, and was last updated by greg 10 years ago.
-
AuthorPosts
-
November 21, 2014 at 5:39 am #701
Hi
I am trying to install dnschain on Linux Mint 17 (Ubuntu 14.04) 64 bit x86_64
I followed the installation instructions, but when I run dnschain I get an error
error: [Global] Error: No such oldDNSMethod: NATIVE_DNS
I added the recommended dnschain.conf file, but it does not seem to have any effect.
Any help is appreciated!
jay@neon1 ~ $ dnschain
2014-11-21T05:23:15.459Z – info: [NMC] connected to namecoind: 127.0.0.1:8336
2014-11-21T05:23:15.611Z – error: [Global] Error: No such oldDNSMethod: NATIVE_DNS
at _.assign.gErr (/usr/local/lib/node_modules/dnschain/src/lib/globals.coffee:93:21)
at new DNSServer (/usr/local/lib/node_modules/dnschain/src/lib/dns.coffee:50:23)
at new DNSChain (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:68:24)
at /usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:57:38
at Object.exports.createServer (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:66:7)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:2:76)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:4:4)
at Module._compile (module.js:456:26)- This topic was modified 6 years, 9 months ago by greg. Reason: moved to DNSChain forum
November 21, 2014 at 7:05 am #872Can you post your configuration file? (It should be located in /etc/dnschain/dnschain.conf).
November 21, 2014 at 8:23 am #873Here is the conf file. I played around with the value of oldDNSMethod, but it didnt seem to have any effect.
jay@neon1 ~ $ cat /etc/dnschain/dnschain.conf
[log]
level=info[dns]
port = 5333
oldDNS.address = 8.8.8.8 # no quotes around IP# disable traditional DNS resolution
oldDNSMethod = NO_OLD_DNS # no quotes around this either[http]
port=8088
tlsPort=4443
Thanks
Jay
November 22, 2014 at 6:02 am #874OK, I was able to reproduce the error, but it seems that you didn't copy the complete error, which should be:
Code:error: [Global] No such oldDNS method: NO_OLD_DNS # no quotes around this eitherApparently it does not ignore the comment (which begins with the # symbol). I've just pushed a fix to the README to move the comment to the line above. That should be all that's necessary to fix it (move the comment to the line above).
Sorry about that, and thanks for pointing this out!
November 22, 2014 at 7:21 am #875Unfortunately that didnt seem to work. I Uninstalled and re-installed coffee and dnschain and used the new conf file. The error is still there but is not exactly the same as you show. I have pasted the entire redundant list of errors below… all of it 🙂
I tried removing the dnschain.conf file completely, and the error is the same. It feels like dnschain is not reading the dnschain.conf file. Not sure iif it is supposed to create one if it is missing, but none nothing seems to be created.
As a cross check, i tried installing dnschain on another device (a Cubieboard running debian) and it seemed to install and run without errors. I dont have namecoin on that device, but i may try adding it and use that as my platform for now. In any case, the problem seems related to my Linux Mint 17 64 bit 386 environment…
Thanks for the help. It looks like it will be a really useful tool for using namecoin once I get it up and running!
entire error output
jay@neon1 /etc/dnschain $ dnschain
2014-11-22T07:05:40.291Z – info: [NMC] connected to namecoind: 127.0.0.1:8336
2014-11-22T07:05:40.442Z – error: [Global] Error: No such oldDNSMethod: NATIVE_DNS
at _.assign.gErr (/usr/local/lib/node_modules/dnschain/src/lib/globals.coffee:93:21)
at new DNSServer (/usr/local/lib/node_modules/dnschain/src/lib/dns.coffee:50:23)
at new DNSChain (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:68:24)
at /usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:57:38
at Object.exports.createServer (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:66:7)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:2:76)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:4:4)
at Module._compile (module.js:456:26)2014-11-22T07:05:40.442Z – error: [DNSChain] DNSChain failed to start: Error: No such oldDNSMethod: NATIVE_DNS
at _.assign.gErr (/usr/local/lib/node_modules/dnschain/src/lib/globals.coffee:93:21)
at new DNSServer (/usr/local/lib/node_modules/dnschain/src/lib/dns.coffee:50:23)
at new DNSChain (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:68:24)
at /usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:57:38
at Object.exports.createServer (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:66:7)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:2:76)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:4:4)
at Module._compile (module.js:456:26)Error: No such oldDNSMethod: NATIVE_DNS
at _.assign.gErr (/usr/local/lib/node_modules/dnschain/src/lib/globals.coffee:93:21)
at new DNSServer (/usr/local/lib/node_modules/dnschain/src/lib/dns.coffee:50:23)
at new DNSChain (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:68:24)
at /usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:57:38
at Object.exports.createServer (/usr/local/lib/node_modules/dnschain/src/lib/dnschain.coffee:66:7)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:2:76)
at Object.(/usr/local/lib/node_modules/dnschain/bin/dnschain:4:4)
at Module._compile (module.js:456:26)
dnschain.conf file at /etc/dnschain/dnschain.conf (also tried at $HOME/.dnschain.conf and $HOME/.dnschain/dnschain.conf and with no dnschain.conf at all)
[log]
level=info[dns]
port = 5333
# don't put quotes around IP
oldDNS.address = 8.8.8.8# disable traditional DNS resolution (default is NATIVE_DNS)
# (don't put quotes around this either)
oldDNSMethod = NO_OLD_DNS[http]
port=8088
tlsPort=4443
November 24, 2014 at 11:41 pm #876Unfortunately that didnt seem to work. I Uninstalled and re-installed coffee and dnschain and used the new conf file. The error is still there but is not exactly the same as you show. I have pasted the entire redundant list of errors below… all of it 🙂
I tried removing the dnschain.conf file completely, and the error is the same. It feels like dnschain is not reading the dnschain.conf file. Not sure iif it is supposed to create one if it is missing, but none nothing seems to be created.
As a cross check, i tried installing dnschain on another device (a Cubieboard running debian) and it seemed to install and run without errors. I dont have namecoin on that device, but i may try adding it and use that as my platform for now. In any case, the problem seems related to my Linux Mint 17 64 bit 386 environment…
Thanks for the help. It looks like it will be a really useful tool for using namecoin once I get it up and running!
OK, I think you're right in that it looks like it's simply not reading the config file.
You have specified NO_OLD_DNS but it's complaining about NATIVE_DNS.
That doesn't make sense though, because it shouldn't give you an error for that since that's the default and it's a perfectly acceptable value.
My guess is that there might be multiple issues going on.
Check:
- That the DNSChain process can read /etc/dnschain/dnschain.conf
- That changing oldDNSMethod in the config results, at least, in a different error message
And that you don't have some silly typo somewhere.
-
AuthorPosts
You must be logged in to reply to this topic.