dns - Web dev in python -
i still novice in these areas here question:
i want see dns request sent out browser (say chrome).so set udp server in python host='' , port=21567(can other previlaged , reserved ones).i set server listen connections using udp.recvfrom(1024) , set proxy in browser localhost , respective port number browser should send request server when type in url right??? right??? if server not detecting connection if wrong please tell me actual mechanism in technical details in advance
setting proxy in browser tells make tcp connections; doesn't have how queries dns, determined operating system's resolver.
for linux you'd shut down bind, e.g. debian /etc/init.d/bind9 stop; python script catch traffic on port 53. , make sure nameserver 127.0.0.1 @ top of /etc/resolv.conf.
for windows you'll need set dns localhost (127.0.0.1), somewhere in network settings.
Comments
Post a Comment