# Mysql skip-name-resolve not stopping dns lookups

**URL:** https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329
**Category:** Other MySQL® Questions
**Created:** [July 31, 2015, 11:00am UTC](https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329 "2015-07-31T11:00:01Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![dogbaby](https://avatars.discourse-cdn.com/v4/letter/d/df705f/32.png) [@dogbaby](https://forums.percona.com/u/dogbaby)
#### Post date: [July 31, 2015, 11:00am UTC](https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329/1 "2015-07-31T11:00:01Z")

</div>

Recently our Rackspace DNS servers were experiencing major lag which had a stalling effect on our mysql database servers. This was confusing since I had disabled DNS lookups months ago by adding **skip\_name\_resolve = ON** in my.cnf and restarting the mysql server.

After doing some research I found this article, which confirmed I had already taken the necessary steps to prevent this from happening:  
[http://codeinthehole.com/writing/sol…d-name-server/](http://codeinthehole.com/writing/solving-mysql-connection-problems-caused-by-a-dead-name-server/)

However when doing a strace on the mysql process and attempting to connect to it the following output confirmed it was still accessing the Rackspace DNS server, which was exactly where the process was stalling:

> connect(209, {sa\_family=AF\_INET, sin\_port=htons(53),  
> sin\_addr=inet\_addr(“173.203.4.9”)}, 16) = 0

The temporary solution that fixed the stalling of mysql was to add googles dns server to the top of the list in **/etc/resolve.conf** like this:

> nameserver 8.8.8.8

I’ve searched and have not found any instances of the skip\_name\_resolve configuration not working. I could use some help in truly disabling DNS lookups for mysql.

Here are my specs for one of the database servers:

- OS version: Ubuntu 14.04.1 LTS
- MySQL version: 5.6.23-72.1-log Percona Server
- my.cnf setting: skip\_name\_resolve = ON
- show variables output: skip\_name\_resolve | ON

---

<div class="post-metadata">

### Author: ![laudares](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/laudares/32/10_2.png) [@laudares](https://forums.percona.com/u/laudares)
#### Post date: [November 19, 2015, 3:58pm UTC](https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329/2 "2015-11-19T15:58:27Z")

</div>

Hi, it looks like Rackspace limits DNS queries (rate limits) - instaling nscd solved this issue for one of our customers.

---

<div class="post-metadata">

### Author: ![Nathaniel\_Courtens](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/nathaniel_courtens/32/5326_2.png) [@Nathaniel\_Courtens](https://forums.percona.com/u/Nathaniel_Courtens)
#### Post date: [December 14, 2021, 5:12pm UTC](https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329/3 "2021-12-14T17:12:25Z")

</div>

I am not sure, but it looks like I am having a related issue. I tried

```auto
[mysql]
skip_name_resolve = on

```

and

```auto
[mysql]
skip-name-resolve = on

```

and I am still get Windows Event Log Warnings that read:

> IP address ‘34.65.113.188’ has been resolved to the host name ‘[188.113.65.34.bc.googleusercontent.com](http://188.113.65.34.bc.googleusercontent.com)’, which resembles IPv4-address itself.

and also:

> IP address ‘167.99.101.152’ could not be resolved: No such host is known.

I do not understand these entries, because my applications are all locally based.

- OS: Windows 10 Pro
- DNS: simpleDNS Pro
- MariaDB version 10.6.5.0
- MariaDB ODBC Unicode Driver 3.1.15.0

Is this related? (I am sorry if I am stepping in on the wrong place. The is my first post.)

---

<div class="post-metadata">

### Author: ![Ivan\_Groenewold](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/ivan_groenewold/32/6299_2.png) [@Ivan\_Groenewold](https://forums.percona.com/u/Ivan_Groenewold)
#### Post date: [December 15, 2021, 1:36pm UTC](https://forums.percona.com/t/mysql-skip-name-resolve-not-stopping-dns-lookups/4329/4 "2021-12-15T13:36:22Z")

</div>

Hi, the skip\_name\_resolved has to go under [mysqld] section of my.cnf
