Skip to content

Conversation

@bhoomika-u
Copy link

Added resolveDNS function.

getTLD :: Text -> DNS -> Maybe Text
getTLD domainName dns = Map.lookup domainName dns

dnsDatabase :: DNS
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

https://hackage.haskell.org/package/dns-4.2.0/docs/Network-DNS-Resolver.html#v:defaultResolvConf

use this /etc/resolv.conf info along with these hardcoded ones.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants