Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug: wrong domain name when querying a non existing record #63

Closed
casperklein opened this issue Jan 9, 2023 · 2 comments
Closed

Bug: wrong domain name when querying a non existing record #63

casperklein opened this issue Jan 9, 2023 · 2 comments
Labels
question Further information is requested

Comments

@casperklein
Copy link

casperklein commented Jan 9, 2023

When querying a non existing record, "box." is somehow used?

# ./doggo example.com srv
NAME    TYPE    CLASS   TTL     ADDRESS                         NAMESERVER      STATUS
box.    SOA     IN      3600s   ns0.centralnic.net.             127.0.0.1:53    NXDOMAIN
                                hostmaster.centralnic.net.
                                1673271736 900 1800 6048000
                                3600

# ./doggo doesnotexist.example.com
NAME    TYPE    CLASS   TTL     ADDRESS                         NAMESERVER      STATUS
box.    SOA     IN      3600s   ns0.centralnic.net.             127.0.0.1:53    NXDOMAIN
                                hostmaster.centralnic.net.
                                1673274650 900 1800 6048000
                                3600

Edit:

I guess, these records in /etc/resolve.conf are causing this behaviour:

domain fritz.box
search fritz.box

Still weird to me 😉

@casperklein casperklein changed the title Bug: wrong domain name when querying a non existing SRV records Bug: wrong domain name when querying a non existing record Jan 9, 2023
@mr-karan
Copy link
Owner

mr-karan commented Jan 9, 2023

Yeah, doggo has support for search lists. Try the same command with --search=false as an additional param?

@mr-karan mr-karan added the question Further information is requested label Jan 9, 2023
@casperklein
Copy link
Author

Thanks for the fast reply. Yes, that's the output I've expected in the first place:

# ./doggo doesnotexist.example.com --search=false
NAME            TYPE    CLASS   TTL     ADDRESS                         NAMESERVER      STATUS
example.com.    SOA     IN      3600s   ns.icann.org.                   127.0.0.1:53    NXDOMAIN
                                        noc.dns.icann.org. 2022091184
                                        7200 3600 1209600 3600

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants