hi,
recently i wrote a simple program to resolve dns using 'dnspython' module.
it works well. then i converted it to exe using py2exe.
when i execute the exe file it doesn't give the required output.

here is a sample code for ns lookup.
--------------------------------------------------------
*    from dns.resolver import query

    def main():
        host = raw_input(': ')
        ns = query(host, 'ns')
        for x in ns:
            print x
        main()
    if __name__ == '__main__':
        main()*
---------------------------------------------------------

when execute the .py :
[image: o1.JPG]


when execute the .exe
[image: o2.JPG]

can anyone please explain this and let me know how to make it correct ??

many thanks,
oshan
_______________________________________________
dnspython-users mailing list
[email protected]
http://howl.play-bow.org/mailman/listinfo.cgi/dnspython-users

Reply via email to