Skip to content
Sign upLog in
← Back to Community

Connect to DNS

Profile icon
hg0428Hacker

1

I have been working on a project that includes connecting to DNS. I need to know what request I should send and what response format should I receive?

2

What kind of response would a flask app send? Is is simply just html code or what?
Thank you in advance.

You may have guessed it, I am making a web browser, that supports Aardvark code.It’s a big project and will take me a long time.

Voters
Profile icon
RitaHardeman
Profile icon
hg0428
Comments
hotnewtop
Profile icon
MagnoliaYY

Hi, have you figured out how to write this code correctly? I couldn't figure out how to do it myself, so I'm just waiting and hoping that someone smarter than me will be able to solve this issue. In the IT courses, we go through DNS servers; for me, this topic was very difficult. I constantly read a lot of information about fixing bugs in this area, but I still write the code very hard. The last thing I read was an article https://itcompanies.net/blog/dns-server-not-responding-how-to-fix. By the way, it is very good and informative for those who do not know what to do in a similar situation with a problem with a DNS server.

Profile icon
hg0428

Nope, I just moved on to a new project.

@MagnoliaYY

Profile icon
hg0428

Oh,

@tussiez
@Coder100
@SixBeeps
@19wintersp

I accidentally wrote search engine instead of web browser. Sorry.

Profile icon
tussiez
Profile icon
tussiez

What exactly do you mean by DNS? DNS = Domain Name System. This converts https://google.com to 8.8.8.8, and connects you to a Google server.

Profile icon
hg0428

Yes, I know what I DNS is. I just don’t know how to get the IP address any other way than connecting to it. So, I need to know how to connect to [email protected]

Profile icon
tussiez

@hg0428
Typically your operating system, or in this case, Linux virtual machine on Repl.it, takes care of the DNS server connection. You can send requests to domain names like google.com normally, and the OS takes care of the rest.

Profile icon
Coder100

connecting to DNS? what?

like making a subdomain programmatically?

i would rather use cloudflare api for that
https://api.cloudflare.com/

Profile icon
SixBeeps

If you don't already have a DNS in mind, Google's DNS seems to have what you need.

And a flask app can send whatever you want it to. You could send plaintext for all it cares. But yeah, HTML is what's usually sent.

Profile icon
19wintersp

DNS is a system for identifying server IPs from a textual domain. You won't normally interact with this system, and a HTTP server won't respond to DNS requests; that's handled by a DNS server. The DNS protocol is used to communicate, which you can read more about here.