Skip to content

patch dns.py#33

Open
am0o0 wants to merge 6 commits intomakuga01:masterfrom
am0o0:amammad-patch-dns.py
Open

patch dns.py#33
am0o0 wants to merge 6 commits intomakuga01:masterfrom
am0o0:amammad-patch-dns.py

Conversation

@am0o0
Copy link
Contributor

@am0o0 am0o0 commented May 19, 2023

when we use subdomains as registered domain like dns.domain.com there is a logical error, i tried to fix it very simply.
the reason of using three level domain name is that:
dns.domain.com has a ns record to dnsfookupServerIP.domain.com which any subdomain of *.dns.domain.com will ask their records from dnsfookupServerIP.domain.com, so it is easily possible with this commit to only with having one domain we use dnsfookup as a production/publicly available server

am0o0 added 2 commits May 19, 2023 05:16
when we use subdomains as registered domain like `dns.domain.com` there is a logical error, i try to fix it very simply.
the reason of using three level domain name is that:
dns.domain.com has a ns record to dnsfookupServerIP.domain.com which any subdomain of *.dns.domain.com will ask their records from dnsfookupServerIP.domain.com, so it is easily possible with this commit to only with having one domain we use dnsfookup as a production/publicly available server
@am0o0 am0o0 changed the title Amammad patch dns.py patch dns.py May 19, 2023
maybe the users set host_domain like `domain.com.` which an additional . or extra space character is added, we want to sure that there isn't any further problem about this.
"""

if '.'.join(domain[-3:-1]) != host_domain and use_fail_ns:
if not domain_not_splited.endswith(host_domain) and use_fail_ns:
Copy link
Owner

Choose a reason for hiding this comment

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

❤️

@am0o0
Copy link
Contributor Author

am0o0 commented May 22, 2023

Idk why git diff is so weird, so I added a review to lines that I changed, other diff indications seems to be IDE linting.

@am0o0
Copy link
Contributor Author

am0o0 commented May 22, 2023

the requirements.txt is completely compatible now, it must be in python virtual environment to work, so I added a bash script to run BE.

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