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

Add resolvename subdomains #916

Merged
merged 3 commits into from
Jan 27, 2022

Conversation

mxaddict
Copy link
Contributor

@mxaddict mxaddict commented Jan 22, 2022

closes #911

image

image

@navbuilder
Copy link

A new build of 302395c has completed succesfully!
Binaries available at https://build.nav.community/binaries/add-resolvename-subdomains

Copy link
Member

@aguycalled aguycalled left a comment

Choose a reason for hiding this comment

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

I would say to include a check so If the client tries to resolve a name with subdomain like subdomain.name.nav, the resolve subdomain option can't be specified

@mxaddict
Copy link
Contributor Author

I would say to include a check so If the client tries to resolve a name with subdomain like subdomain.name.nav, the resolve subdomain option can't be specified

Alright, I'll add it now, should it not allow it? Or just ignore the second param?

@aguycalled
Copy link
Member

maybe it's enough just ignoring it

}
}

if (getSubdomains && subdomain != "") {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@aguycalled I added this check, should be good?

@chasingkirkjufell
Copy link
Contributor

i thought that each dotnav can only have one subdomain? so there wouldn't be subdomains

@navbuilder
Copy link

A new build of b8b7ff3 has completed succesfully!
Binaries available at https://build.nav.community/binaries/add-resolvename-subdomains

@mxaddict
Copy link
Contributor Author

mxaddict commented Jan 23, 2022 via email

@chasingkirkjufell
Copy link
Contributor

chasingkirkjufell commented Jan 24, 2022

I can't resolve subdomain with true unless directly resolving subdomain. did i do it wrong? i'm on b8b7ff3 windows 10 gitian build
image

@mxaddict
Copy link
Contributor Author

i thought that each dotnav can only have one subdomain? so there wouldn't be subdomains

Yes, we can't have second level subdomains, that is why we just ignore the subdomain request on a subdomain

@chasingkirkjufell
Copy link
Contributor

In my screenshot I was trying to resolve first level subdomain with true on the original domain but it didnt work. Can only resolve subdomain directly.

@mxaddict
Copy link
Contributor Author

I'll double check

@mxaddict
Copy link
Contributor Author

@chasingkirkjufell I've fixed the issue that you mentioned

@navbuilder
Copy link

A new build of 555fa81 has completed succesfully!
Binaries available at https://build.nav.community/binaries/add-resolvename-subdomains

Copy link
Contributor

@chasingkirkjufell chasingkirkjufell left a comment

Choose a reason for hiding this comment

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

testes gitian build on windows 10

@mxaddict mxaddict merged commit 587d905 into navcoin:master Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[DOTNAV] Add resolve subdomains option to resolvename
4 participants