# DNS Error on local with DevKinsta

**URL:** https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749
**Category:** Application Support
**Created:** [November 16, 2023, 11:12am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749 "2023-11-16T11:12:20Z")
**Posts on this page:** 18
**Page:** 1

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 16, 2023, 11:12am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/1 "2023-11-16T11:12:20Z")

</div>

So I Download the DevKinsta, and I clone to my local the site that I have in a staging environment.  
I have everything configured, and I when I go to the hosts file and I have:  
127.0.0.1 localhost  
255.255.255.255 broadcasthost  
::1 localhost

#### START DEVKINSTA entries

127.0.0.1 nameofmysite.local  
127.0.0.1 www.nameofmysite.local  
::1 nameofmysite.local  
::1 www.nameofmysite.local

#### END DEVKINSTA entries

This seems to be correct, but I can’t see the site, always with this error:

 ![Screenshot 2023-11-16 at 11.10.11](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/c/cdb6b4b3c0863bd0dbbeadb066e91d56e5ed242a.png)  
What am I missing?

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 16, 2023, 11:31am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/2 "2023-11-16T11:31:26Z")

</div>

Hey @Ana_Nogal 👋,

did you edit the image to hide the domain? Or for some reason your browser is trying to visit ‘http’?

Does the same happen to you when you open the site from the site page in DevKinsta?

 ![Screenshot_2023-11-16_at_11_28_07](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/8d575b0ce463f66dbdba773023926cf436e0fbc6.png)

Also, if you access DevKinsta settings what is the current status of the Port selector?

![Screenshot 2023-11-16 at 11.31.00](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/8a5e168e26430f696f730beb96a510c68de8c59f.png)

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 16, 2023, 11:50am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/3 "2023-11-16T11:50:54Z")

</div>

So I have this in the port selector

 ![Screenshot 2023-11-16 at 12.45.28](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/7/76838ec894c0bb01867993e75db03e1cdbc8d6b2.png)  
I have it with http, but I had it before with https and the result was the same 🙂

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 16, 2023, 11:59am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/4 "2023-11-16T11:59:29Z")

</div>

When that option is enabled, your site address shouldn’t be only [https://yourlocalsite.local](https://yourlocalsite.local) but it should have a port number too.  
What does the URL look like in the single site view in DevKinsta?

 ![](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d0787f619795a908ebe95baa85da7c62d715d7d8.png)

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 16, 2023, 1:04pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/5 "2023-11-16T13:04:31Z")

</div>

Oh! it does not have a port number. How can I change this?

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 16, 2023, 1:05pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/6 "2023-11-16T13:05:34Z")

</div>

Try to simply uncheck the checkbox of the Auto-detect open port settings

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 16, 2023, 1:14pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/7 "2023-11-16T13:14:50Z")

</div>

I did, but it does not put the port in the end. I stoped and restarted the site and it still does not work. And the port still not appears in the site host

---

<div class="post-metadata">

### Author: ![Agus](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/agus/32/1515_2.png) [@Agus](https://community.kinsta.com/u/Agus)
#### Post date: [November 17, 2023, 1:19am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/8 "2023-11-17T01:19:09Z")

</div>

Hi there 👋

Can you please try to un-check the “_Auto-detect open ports_” in that DevKinsta’s _Port selector_ section, and then put the `HTTP` field with `80` and the `HTTPS` field with `443` and click `Confirm`?  
Then see if you can access your local site URL on your browser (without any port)?

If it’s still not working, can you please try to ping that local site URL in question and please provide us with the screenshot of the ping results (depends on your operating system, on Windows you can do it via command prompt, on Linux/Mac you can do it on terminal program) with something like:  
`ping yourlocalsiteurl.local`

Best regards,  
Agus

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 17, 2023, 9:25am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/9 "2023-11-17T09:25:40Z")

</div>

Hello Agus,  
Sorry for the late response, I am in Europe 🙂  
So I can ping the site correctly… could this be Chrome that is blocking this? Because I check and I don’t have the firewall active. I have a mac by the way.  
 ![Screenshot 2023-11-17 at 10.13.55](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/2/24eb23c6c30d0065ee2a56abb6faea97ff25079c.png)

Ana

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 17, 2023, 9:26am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/10 "2023-11-17T09:26:12Z")

</div>

So I tried in Safari and I got this message:  
 ![Screenshot 2023-11-17 at 10.15.58](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/5/56d3c448c1d4d64ae8c1a11b72fc1eb816b27ee4.png)

And I was looking at the URL and it puts it like this: [https://https//mysite.local/](https://https//mysite.local/)  
Could it be this extra https that is making the problem? I can’t remove it. It puts it back again if I write: [http://mysite.local/](http://mysite.local/)

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 17, 2023, 11:29am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/11 "2023-11-17T11:29:30Z")

</div>

Hello Ana,

yes, that is definitely the issue. It looks like for some reason part of the URLs in your site have been updated with the wrong structure.  
You should be able to fix that by running a search and replace by using WP CLI. Are you familiar with the process? If so, you can open Docker, move to the Container tab, click on the container called [  
devkinsta\_fpm and from there select the tab terminal.  
From that session, you will be able to move to your site folder by using the command `cd public/novoda` (be sure to update the name of the site if it doesn’t match with yours) and use WP CLI to run the search and replace. I would probably look for:

`http//` and replace it with nothing  
`http\/\/` and replace it with nothing  
`http\\/\\/` and replace it with nothing

I’d also recommend running all the commands with the `--dry-run` parameter first and be sure to double-check the results.

> **[wp db | WP-CLI Command | WordPress Developer Resources](https://developer.wordpress.org/cli/commands/db/)**
>
> EXAMPLES # Create a new database. $ wp db create Success: Database created. # Drop an existing database. $ wp db drop --yes Success:…

> **[wp search-replace | WP-CLI Command | WordPress Developer Resources](https://developer.wordpress.org/cli/commands/search-replace/)**
>
> Searches through all rows in a selection of tables and replaces appearances of the first string with the second string. By default, the…

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 17, 2023, 12:39pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/12 "2023-11-17T12:39:20Z")

</div>

Hi Alessandro,  
So I was doing that and I got this error:

 ![Screenshot 2023-11-17 at 13.36.59](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/d/d5cb4e91e2d62770236982c098e604312453d93f.png)

Ana

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 17, 2023, 12:42pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/13 "2023-11-17T12:42:22Z")

</div>

Is the site a multisite?  
Can you please check if inside the wp-config.php file you have a domain specified and if that has been changed as novoda.local?

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 17, 2023, 1:02pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/14 "2023-11-17T13:02:03Z")

</div>

Yep, it’s a multisite, sorry I didn’t know…  
 ![Screenshot 2023-11-17 at 14.00.54](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/2/27c59d309dc0aaa0a1768dfe0bbe009141c4e613.png)  
How should I proceed now?

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 17, 2023, 1:04pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/15 "2023-11-17T13:04:04Z")

</div>

Hey,

the DOMAIN\_CURRENT\_SITE shouldn’t have the scheme specified, remove the http:// and leave just novoda.local

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![Ana\_Nogal](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/ana_nogal/32/2683_2.png) [@Ana\_Nogal](https://community.kinsta.com/u/Ana_Nogal)
#### Post date: [November 20, 2023, 1:24pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/16 "2023-11-20T13:24:40Z")

</div>

Thanks Alessandro,  
I could finally put the site to work 😊  
Best,  
Ana

---

<div class="post-metadata">

### Author: ![Alessandro](https://sea2.discourse-cdn.com/flex020/user_avatar/community.kinsta.com/alessandro/32/2310_2.png) [@Alessandro](https://community.kinsta.com/u/Alessandro)
#### Post date: [November 20, 2023, 3:21pm UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/17 "2023-11-20T15:21:56Z")

</div>

You are very welcome Ana, glad it worked!

Regards,  
Alessandro

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex020/uploads/kinsta/original/2X/8/80f8c4e56fecc02327a0964e6bf63a716483529f.png) [@system](https://community.kinsta.com/u/system)
#### Post date: [November 23, 2023, 3:22am UTC](https://community.kinsta.com/t/dns-error-on-local-with-devkinsta/2749/18 "2023-11-23T03:22:51Z")

</div>

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.
