`
lz1130
  • 浏览: 406284 次
  • 性别: Icon_minigender_1
  • 来自: 福建
社区版块
存档分类
最新评论

Using Google Public DNS

阅读更多
转自:http://code.google.com/speed/public-dns/docs/using.html
谷歌的公共dns



Configuring your network settings to use Google Public DNS
When you use Google Public DNS, you are changing your DNS "switchboard" operator from your ISP to Google Public DNS.
In most cases, the IP addresses used by your ISP's domain name servers are automatically set by your ISP via the Dynamic Host Configuration Protocol (DHCP). To use Google Public DNS, you need to explicitly change the DNS settings in your operating system or device to use the Google Public DNS IP addresses. The procedure for changing your DNS settings varies according to operating system and version (Windows, Mac or Linux) or the device (computer, phone, or router). We give general procedures here that might not apply for your OS or device; please consult your vendor documentation for authoritative information.
Note: We recommend that only users who are proficient with configuring operating system settings make these changes.
Important: Before you start
Before you change your DNS settings to use Google Public DNS, be sure to write down the current server addresses or settings on a piece of paper. It is very important that you keep these numbers for backup purposes, in case you need to revert to them at any time.
After changing your settings, if you encounter a problem and cannot connect to the Internet, please call our support numbers for troubleshooting instructions.
We also recommend that you download this page and print it, in the event that you encounter a problem and need to refer to these instructions.
Google Public DNS telephone support
877-590-4367 in the U.S.
770-200-1201 outside the U.S.

Google Public DNS IP addresses
The Google Public DNS IP addresses are as follows:
8.8.8.8
8.8.4.4

You can use either number as your primary or secondary DNS server. You can specify both numbers, but do not specify one number as both primary and secondary.
  • 大小: 24.1 KB
分享到:
评论

相关推荐

    C# Socket 实现DNS协议完整代码

    这段代码创建了一个Socket对象,向Google Public DNS服务器发送了一个DNS查询,并接收了响应。注意,实际的CreateDnsQuery和ParseDnsResponse函数需要根据DNS协议的规范实现,这部分代码没有包含在内,因为它们涉及...

    C#更改DNS地址

    这段代码将把名为"本地连接"的网络接口的首选DNS服务器设置为8.8.8.8,备用DNS服务器设置为8.8.4.4(这是Google的公共DNS服务器)。 除了直接调用Windows API,还可以考虑使用更高级的库,如`System.Net.Network...

    Building.Your.Next.Big.Thing.with.Google.Cloud.Platform.1484210050

    Building Your Next Big Thing with Google Cloud Platform shows you how to take advantage of the Google Cloud Platform technologies to build all kinds of cloud-hosted software and services for both ...

    如何获取主机名和IP地址

    IPAddress[] googleIps = Dns.GetHostAddresses("www.google.com"); foreach (IPAddress ip in googleIps) { Console.WriteLine("Google 的 IP 地址: " + ip.ToString()); } } } ``` 这段代码会输出Google...

    c#ping测试主机IP

    // Google DNS服务器的IP Ping ping = new Ping(); PingReply reply = ping.Send(ipAddress); if (reply.Status == IPStatus.Success) { Console.WriteLine($"主机 {ipAddress} 可达,往返时间:{reply....

    C#实现一键换IP、重置DNS、网关及掩码的方法

    // Google Public DNS inPar["DNSServerSearchOrder"] = dnsServers; mo.InvokeMethod("SetDNSServerSearchOrder", inPar, null); ``` 4. **重置DNS**: 如果需要重置DNS,可以将DNS服务器列表设置为空数组。 ``...

    wxh c#获取ip地址

    public class DefaultPage : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { string clientIP = Request.UserHostAddress; Console.WriteLine("Client IP: {0}", clientIP); } ...

    C#通过IP地址获取主机名称

    主机名称则是人类可读的字符串,例如"www.google.com",它与IP地址相对应,方便记忆。在DNS(Domain Name System)系统中,IP地址和主机名称可以相互转换。 在C#中,我们可以使用`System.Net.Dns`命名空间下的类和...

    C#服务实例

    // Google DNS服务器的IP地址 return reply.Status == IPStatus.Success; } ``` ### 实现自动关机 在C#中,我们可以使用`System.Diagnostics.Process`类来执行系统命令。对于自动关机,我们可以调用`shutdown....

    根据IP获取地址

    此外,还可以使用第三方API服务,例如Google Maps Geocoding API或OpenStreetMap Nominatim API。这些服务通常需要网络请求,因此在ASP.NET中可以使用HttpClient类来发送HTTP请求。以下是一个使用Nominatim API的...

    C#检测当前用户网络是否连接 源码

    这里,我们尝试ping Google的DNS服务器8.8.8.8,如果在1秒内收到回应,则认为网络连接成功。 2. **利用NetworkInterface类**: `System.Net.NetworkInformation.NetworkInterface` 类提供信息关于本地计算机上的...

    获得本机ip地址的例子

    这段代码通过创建一个UDP套接字并尝试连接到Google DNS服务器来获取本地IP地址。注意,这里得到的是外网IP,如果网络未连接,则返回的是内网IP。 在Java中,可以使用`InetAddress`类来获取IP地址: ```java import...

    通过IP地址查询详情

    此外,还可以利用公开的IP定位服务,如Google Maps Geocoding API或MaxMind的GeoIP数据库,获取更精确的地理位置信息。这些服务通常需要API密钥,并且有使用限制,因此在使用时要考虑到这一点。 在进行IP地址查询时...

    获取Ip地址代码

    # 连接到任意一个ICMP服务器,如8.8.8.8(Google DNS) s.connect(('8.8.8.8', 80)) ip_address = s.getsockname()[0] finally: s.close() return ip_address print(get_ip_address()) ``` 2. **Java获取IP...

    ping 方法,C#

    这段代码创建了一个Ping对象,然后向Google DNS服务器发送了一个回显请求,并根据`PingReply`对象的状态判断请求是否成功。`RoundtripTime`属性表示从发送到接收回显请求的完整时间。 `PowerSockPing.csproj`是一个...

    c#检查本机是否联网2

    在这个例子中,我们向Google的DNS服务器(8.8.8.8)发送了一个ping请求,如果收到成功响应,就认为网络是连通的。 最后,`System.Net.NetworkInformation.PingOptions`类可以用于设置ping请求的超时时间和其他选项...

    如何获得本地IP地址

    这个函数通过创建一个UDP套接字并连接到Google的DNS服务器(8.8.8.8),然后获取套接字的本地地址,从而得到本机的外网IP。如果只想获取内网IP,可以省略连接步骤,直接查询本地接口。 在Java中,可以使用`java.net...

    C#根据IP获取网络主机名(域名)

    // Google DNS服务器的IP string hostname; try { hostname = Dns.GetHostEntry(ipAddress).HostName; Console.WriteLine($"IP地址 {ipAddress} 对应的主机名是: {hostname}"); } catch (SocketException ...

    检测ping值是否正常

    // Google DNS服务器的IP地址,用于示例 int timeout = 1000; // 超时时间,单位:毫秒 Ping pingSender = new Ping(); PingOptions options = new PingOptions(); byte[] buffer = Encoding.ASCII.GetBytes(...

    快速准确判断网络连接状态

    通常,我们会选择一个公认的公共DNS服务器(如Google的8.8.8.8或8.8.4.4)作为ping的目标,以确保结果的可靠性。 3. **结合使用:** 在实际应用中,为了提高判断的准确性,我们可能会同时使用`NetworkInterface`和...

Global site tag (gtag.js) - Google Analytics