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

Error on *.li domains #57

Open
windbridges opened this issue Nov 5, 2021 · 1 comment
Open

Error on *.li domains #57

windbridges opened this issue Nov 5, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@windbridges
Copy link

Version(s) affected: 1.13.0

Description
An error occurs when requesting info on .li domains.

How to reproduce

console.log(await whoiser.domain(domain))

{
  'whois.nic.li': {
    'Domain Status': [],
    'Name Server': [],
    text: [
      'Requests of this client are not permitted. Please use https://www.nic.ch/whois/ for queries.'
    ]
  }
}
@windbridges windbridges added the bug Something isn't working label Nov 5, 2021
@AndreiIgna
Copy link
Member

Some WHOIS servers choose not to make available domain data, and .li & .ch do this 😕

They do allow making a request only to see the availability of a domain https://www.nic.li/whois/domaincheck/#collapse-c25cbf2f-a663-11e6-89db-525400a7a801-1 and this would require making a request like this

const domainInfo = await whoiser.query({ host: 'whois.nic.ch, port: 4343, query: 'exampledomain.li' })

The response will be 0 or 1, meaning the domain can be registered or not. More info about responses can be found here https://www.nic.li/whois/domaincheck/#collapse-c25cbf2f-a663-11e6-89db-525400a7a801-2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants