问题
I have created a CName entry in forward lookup in DNS and then created a PTR in Reverse lookup in DNS but following code always returns aliases blank.
IPHostEntry reverse = Dns.GetHostEntry(txtIPaddress.Text);
Response.Write(reverse.HostName);
I have read somewhere that if IPv6 is enabled then aliases will be blank. So, i have disabled on both client and server machine using fixit given here: http://support.microsoft.com/kb/929852#fixit4me
but nothing is working any help will be appreciated.
If any other way to get CName using IP ?
来源:https://stackoverflow.com/questions/19547328/setup-reverse-lookup-to-get-cname-from-ip