---
title: "[ERROR] P=my_domain.com"
url: "https://maker.wiznet.io/forum/9671"
markdown_url: "https://maker.wiznet.io/forum/9671/md"
type: "Forum topic"
category: "Wireless"
author: "narpaw"
created: "2013-11-11T16:38:41+09:00"
last_activity: "2017-05-04T08:30:26+09:00"
language: "en"
views: 431
replies: 1
source: "WIZnet Makers forum (https://maker.wiznet.io/forum/)"
---

# [ERROR] P=my_domain.com

## Question

Asked by narpaw on 2013-11-11 in Wireless.

```
->   AT
<-   [OK]

->   AT+NSET=192.168.0.47,255.255.255.0,192.168.0.1
<-   [OK]
 
->   AT+WWPA=1234567890
<-   [OK]
 
->   AT+WA=PointName
<-       IP              SubNet         Gateway   
<-    192.168.0.47: 255.255.255.0: 192.168.0.1
<-    [OK]
 
->   AT+DNSLOOKUP=my_domain.com
<-   [ERROR]
<-   P=my_domain.com
```

I have problem with Query DNS server for address of hostname URL. What is the reason this error and what is P = … after [ERROR]?

Software version:
N=2.3.1
S2W WLAN VERSION=2.0.27

## Replies

### Reply 1 by ssekim, 2013-11-13

Hello narpaw

Regarding a dns-lookup, please refer to the below examples.

1. DHCP
   Generally, you don’t need to set a dns-server.

```
AT+WD
[OK]
AT+WM=0
[OK]
AT+WWPA=123456789
[OK]
AT+NDHCP=1
[OK]
AT+WA=Wiznet_Kaizen
    IP              SubNet         Gateway   
 192.168.15.15: 255.255.255.0: 192.168.15.1
[OK]
AT+DNSLOOKUP=google.com
IP:173.194.126.201
[OK]
```

1. Static IP
   If you use a static IP for WizFi210, you need to set a dns server manually as below.
   I just used google dns server(8.8.8.8) for a test.

```
AT+WD
[OK]
AT+WM=0
[OK]
AT+WWPA=123456789
[OK]
AT+NDHCP=0
[OK]
AT+DNSSET=8.8.8.8
[OK]
AT+NSET=192.168.15.111,255.255.255.0,192.168.15.1
[OK]
AT+WA=Wiznet_Kaizen
    IP              SubNet         Gateway   
 192.168.15.111: 255.255.255.0: 192.168.15.1
[OK]
AT+DNSLOOKUP=google.com
IP:173.194.127.227
[OK]
```

In above your log, you used the static ip, it means that you need to set a dns server like &lt;AT+DNSSET=8.8.8.8>.

Steve

---

Source: https://maker.wiznet.io/forum/9671
