diff --git a/scapy/layers/dns.py b/scapy/layers/dns.py
index 5b2417e3219d7c714e13e593c167c84c71f4b8d3..bafa5a62d2509ab32ce3106246b7f98465e0ebbc 100644
--- a/scapy/layers/dns.py
+++ b/scapy/layers/dns.py
@@ -12,7 +12,7 @@ import socket,struct
 from scapy.packet import *
 from scapy.fields import *
 from scapy.ansmachine import *
-from scapy.layers.inet import UDP
+from scapy.layers.inet import IP, UDP
 
 class DNSStrField(StrField):